Function at 0x4087e0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4146e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x718
mov eax, dword [0x41d438]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x718], eax
mov eax, dword [esi + 0x404]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x408a03
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x110]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 0x401
push ecx
mov dword [esi + 0x404], 1
mov dword [esi + 0x114], eax
mov dword [esi + 0x390], ebx
call edi
mov edx, dword [esi + 0x20]
push 0x402
push edx
mov dword [esi + 0x41c], ebx
call edi
push 2
push ebx
push ebx
push ebx
mov ecx, 0x41d628
mov dword [esi + 0x1f4], ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esi + 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push ebx
lea ecx, [esp + 0x74]
call fcn.00401180
push 0x40
push 0x41909c
lea ecx, [esp + 0x78]
mov dword [esp + 0x734], ebx
call fcn.004017f0
push 0x419094
lea ecx, [esp + 0x74]
call fcn.004018c0
lea ecx, [esp + 0x70]
call sub.MFC71.DLL_CDialog::DoModal
mov ecx, 0x41d628
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push ebx
push str.sealy_update.xml
mov ecx, 0x41d628
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
je 0x4089db
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x4f8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4f8]
push eax
push 0x104
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x4f8]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x730], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x730], 2
call dword [0x4162e0]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x604]
push str._sGamePlaza.exe_No
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x620]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4089d1
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x70]
mov dword [esi + 0x404], ebx
mov dword [esp + 0x72c], 0xffffffff
call fcn.004012c0
mov ecx, dword [esp + 0x724]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x71c]
call fcn.00413841
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret