Function at 0x409b20
Capabilities:
Copy file
Hide graphical window
Read .ini file

Disassembly:
sub esp, 0x328
push esi
mov esi, dword [esp + 0x330]
push 0
mov dword [0x4256d8], esi
call fcn.0040b9f2
push eax
call fcn.0040b10c
add esp, 8
call fcn.00409a20
test al, al
jne 0x409b5a
or eax, 0xffffffff
pop esi
add esp, 0x328
ret 0x10
mov eax, dword [esp + 0x338]
push eax
call fcn.00409a60
add esp, 4
test al, al
jne 0x409b7b
or eax, 0xffffffff
pop esi
add esp, 0x328
ret 0x10
push ebx
push ebp
push edi
push 0x67
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
push 0x408860
mov dword [0x4256d4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x65
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x4256d0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
je 0x409c19
cmp dword [esp + 0x14], 0x12
je 0x409d7d
mov eax, dword [0x4256d0]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x409c06
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x409bd0
mov edx, dword [0x4255b8]
xor ecx, ecx
test edx, edx
setne cl
push 0
push 0x1ff
mov esi, ecx
push 0xffffffffffffffff
push 0x4255b8
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
cmp eax, esi
je 0x409bb7
mov edx, dword [0x4256d0]
push 1
push edx
call fcn.00407cb0
add esp, 8
call fcn.00407db0
mov ebx, eax
mov eax, dword [0x4255c8]
cmp ebx, eax
jle 0x409d45
push ebx
push 0x4254b4
lea eax, [esp + 0x138]
push str._suserRep_03d.rep
push eax
call fcn.0040b134
add esp, 0x10
lea ecx, [esp + 0x130]
push ecx
push 1
push str.5_10
push str.SETUP
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x409d45
mov edi, 0x4254b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x4254b4
rep movsb byte es:[edi], byte [esi]
mov edi, str.mapmoon001.map
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._suserRep_03d.map
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
lea eax, [esp + 0x240]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b134
add esp, 0x10
lea ecx, [esp + 0x234]
lea edx, [esp + 0x2c]
push 1
push ecx
push edx
call ebp
lea eax, [esp + 0x130]
push eax
push 0x417da4
push str.5_10
push str.SETUP
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.00407720
mov ecx, dword [0x4255b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x4255bc]
push edx
call esi
xor eax, eax
mov dword [0x4255b8], eax
mov dword [0x4255bc], eax
mov dword [0x4255c0], eax
mov dword [0x4255c4], eax
jmp 0x409bb7
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x328
ret 0x10