Function at 0x401640
Capabilities:
Copy file
Create directory
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4181d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x154], 0
mov eax, dword [0x41e2d0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov edi, 1
lea eax, [esp + 0x18]
push edi
mov bl, 5
push str.FileName_d
push eax
mov byte [esp + 0x160], bl
call fcn.0041035c
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x41f7cc
call fcn.004118a6
mov eax, dword [esi + 0xc0]
lea ecx, [esp + 0x10]
push eax
push 0x104
push 0x104
call fcn.00411ae8
push eax
push 0x41f7cc
push 0
lea ecx, [esp + 0x2c]
call fcn.00411a71
push eax
push str.FILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00411ac0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x401912
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004114de
push ecx
lea eax, [esp + 0x164]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x160], 6
call fcn.004114de
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], bl
push ecx
mov ecx, esi
call fcn.00402540
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 7
call fcn.00411856
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], bl
call fcn.00411769
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004114de
push ecx
lea eax, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x160], 8
call fcn.004114de
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], bl
push ecx
mov ecx, esi
call fcn.00402540
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 9
call fcn.00411856
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], bl
call fcn.00411769
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.00411ac0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00411ac0
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004114de
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00401a20
mov ecx, eax
mov byte [esp + 0x158], 0xa
call fcn.004027c0
push eax
call ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], bl
call fcn.00411769
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00411d75
test eax, eax
je 0x40184f
mov dl, byte [esp + 0x44]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
and dl, 0xfe
push eax
push ecx
mov byte [esp + 0x4c], dl
call fcn.00411eda
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401890
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.00411d75
mov dl, byte [esp + 0x44]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
and dl, 0xfe
push eax
push ecx
mov byte [esp + 0x4c], dl
call fcn.00411eda
jmp 0x40189f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x4019a1
inc edi
lea edx, [esp + 0x18]
push edi
push str.FileName_d
push edx
call fcn.0041035c
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x41f7cc
call fcn.004118a6
mov eax, dword [esi + 0xc0]
lea ecx, [esp + 0x10]
push eax
push 0x104
push 0x104
call fcn.00411ae8
push eax
push 0x41f7cc
push 0
lea ecx, [esp + 0x2c]
call fcn.00411a71
push eax
push str.FILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00411ac0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x401707
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 4
call fcn.00411769
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 3
call fcn.00411769
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 2
call fcn.00411769
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call fcn.00411769
lea ecx, [esp + 0x15c]
mov byte [esp + 0x154], 0
call fcn.00411769
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call fcn.00411769
mov eax, 1
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 4
call fcn.00411769
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 3
call fcn.00411769
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 2
call fcn.00411769
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call fcn.00411769
lea ecx, [esp + 0x15c]
mov byte [esp + 0x154], 0
call fcn.00411769
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call fcn.00411769
xor eax, eax
jmp 0x401986