Function at 0x407600
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c1cb
push eax
mov dword fs:[0], esp
sub esp, 0x558
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x23280]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
lea ebp, [ebx + 0x23190]
push 0x411510
push ebp
mov dword [ebx + 0x23280], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x4076ab
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebx + 0x23290]
push ebp
push edi
lea ecx, [esp + 0x160]
push 0x410670
push ecx
call esi
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
lea eax, [ebx + 0x230c4]
lea ecx, [esp + 0x54]
push eax
push edi
push 0x410670
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x18
jmp 0x4076b1
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebx + 0x23290]
push ebp
push eax
lea ecx, [esp + 0x368]
push 0x410670
push ecx
call esi
lea edx, [esp + 0x370]
push str.ins.exe
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x18
test eax, eax
je 0x40790c
mov ecx, dword [ebx + 0x23394]
push 0x4109e4
add ecx, 0x29c
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x464]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x158]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x25c]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x23290]
lea ecx, [esp + 0x464]
push eax
push ecx
push str._s_s
push edx
call esi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
dec edx
mov dword [esp + 0x14], edx
js 0x407805
cmp byte [edx + ebp], 0x5c
je 0x407779
dec edx
jns 0x407767
mov dword [esp + 0x14], edx
jmp 0x407805
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
mov esi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x54]
mov eax, ecx
mov dword [esp + 0x14], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x158]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x14]
and ecx, 3
lea edx, [esp + 0x25c]
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + ebx + 0x23191]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x25c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x407842
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
xor edi, edi
lea ecx, [esp + 0x25c]
push eax
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x40790c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x360]
mov dword [esp + 0x38], edi
push ecx
mov dword [esp + 0x54], edi
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
lea eax, [ebx + 0x23290]
lea edx, [esp + 0x54]
push eax
push str._sins_ver.dat
push edx
call esi
lea eax, [esp + 0x60]
push 0x410ad4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x40790c
push 0x4109c4
push ebp
push str._s__s_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov ecx, dword [ebx + 0x2318c]
dec ecx
mov dword [ebx + 0x2318c], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x410dc0]
mov dword [esp + 0x570], 0
cmp eax, 0x20a
jne 0x407944
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x40795d
mov ecx, dword [ebx + 0x2318c]
lea edx, [esp + 0x10]
push ecx
push 0x4107d0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebx + 0x23394]
lea eax, [esp + 0x10]
push eax
add ecx, 0x29c
call fcn.0040b4c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x570], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x568]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x564
ret