Function at 0x412dd0
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x45448c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push str.drv_SAGEFS4.sys
push eax
mov edi, ecx
call fcn.004083f0
add esp, 8
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, ebx
jne 0x412e3b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x92
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea ecx, [esp + 0x10]
push str.win_system32_sagestub.dll
push ecx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x412e9b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x91
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea edx, [esp + 0x10]
push str.win_system32SgHookApi.dll
push edx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x412efb
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x8f
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea eax, [esp + 0x10]
push str.win_system32SgMsgHook.dll
push eax
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x412f5b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x93
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea ecx, [esp + 0x10]
push str.win_system32InjDllProxy.dll
push ecx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x412fbb
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x99
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea edx, [esp + 0x10]
push str.win_system32SgCipherDll.dll
push edx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x41301b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x94
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea eax, [esp + 0x10]
push str.exedir_SGREADERUI.LNG
push eax
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 6
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x41307b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x97
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea ecx, [esp + 0x10]
push str.exedir_sginfo.db
push ecx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 7
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x4130d7
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x96
mov ecx, edi
call fcn.00412d20
test eax, eax
je 0x413133
lea edx, [esp + 0x10]
push str.exedir_sig_app.db
push edx
call fcn.004083f0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 8
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
test eax, eax
jne 0x413151
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x95
mov ecx, edi
call fcn.00412d20
test eax, eax
jne 0x413151
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
lea eax, [esp + 0x18]
push str.win_system32MFC71u.dll
push eax
call fcn.004083f0
mov esi, eax
lea ecx, [esp + 0x1c]
push str.exedir_MFC71u.dll
push ecx
mov byte [esp + 0x34], 9
call fcn.004083f0
add esp, 0x10
push ebx
mov ecx, esi
mov edi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea edx, [esp + 0x14]
push str.win_system32msvcp71.dll
push edx
call fcn.004083f0
mov edi, eax
lea eax, [esp + 0x20]
push str.exedir_msvcp71.dll
push eax
mov byte [esp + 0x34], 0xa
call fcn.004083f0
add esp, 0x10
push ebx
mov ecx, edi
mov ebp, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
push str.win_system32msvcr71.dll
push ecx
call fcn.004083f0
mov edi, eax
lea edx, [esp + 0x20]
push str.exedir_msvcr71.dll
push edx
mov byte [esp + 0x34], 0xb
call fcn.004083f0
add esp, 0x10
push ebx
mov ecx, edi
mov ebp, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret