Function at 0x40a1e0
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45db51
mov eax, dword fs:[0]
push eax
mov eax, 0x1f7c
call fcn.00431640
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x1f78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x1f90]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1f98], 1
call fcn.0041c638
mov bl, 2
lea eax, [esp + 0x40]
mov byte [esp + 0x1f98], bl
mov ecx, dword [esp + 0x1fa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x1fa4]
push edx
push str._s.
lea edx, [esp + 0x1bac]
call fcn.0040fcf0
mov eax, dword [esp + 0x1fa8]
push eax
push str._s.
lea edx, [esp + 0x17cc]
call fcn.0040fcf0
add esp, 0x10
push 0
lea ecx, [esp + 0x17c0]
push ecx
lea ecx, [esp + 0x28]
call fcn.0041c6cd
test eax, eax
je 0x40a4a5
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
lea ecx, [esp + 0x20]
call fcn.0041c33c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call fcn.0041c5fd
test eax, eax
jne 0x40a49a
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.0041c907
mov esi, eax
mov byte [esp + 0x1f98], 3
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or eax, ecx
jge 0x40a30b
push 0x3e8
mov ecx, esi
call fcn.00402cd0
mov esi, dword [esi]
push esi
lea eax, [esp + 0x50]
push 0x3e8
push eax
call fcn.0042f3c5
mov byte [esp + 0x1fa4], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [esp + 0x4c]
push ecx
push 0x4687ec
call esi
test eax, eax
je 0x40a49a
lea edx, [esp + 0x4c]
push edx
push str.selfConfig.ini
call esi
test eax, eax
je 0x40a49a
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x24]
call edx
test eax, eax
je 0x40a412
mov ecx, dword [esp + 0x1fa0]
lea eax, [esp + 0x4c]
push eax
push ecx
push str._s_s
lea edx, [esp + 0xff8]
call fcn.0040fcf0
mov eax, dword [esp + 0x1fb0]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push eax
push str._s_s
lea edx, [esp + 0xc10]
call fcn.0040fcf0
add esp, 8
lea edx, [esp + 0xc08]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402eb0
push ecx
lea eax, [esp + 0xff4]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x1fa4], 4
call fcn.00402eb0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x1fa0], bl
call fcn.0040a1e0
jmp 0x40a49a
mov edx, dword [esp + 0x1fa0]
lea ecx, [esp + 0x4c]
push ecx
push edx
push str._s_s
lea edx, [esp + 0x13e0]
call fcn.0040fcf0
mov ecx, dword [esp + 0x1fb0]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push ecx
push str._s_s
lea edx, [esp + 0x828]
call fcn.0040fcf0
add esp, 0xc
lea edx, [esp + 0x81c]
push edx
push 0x465afc
lea edx, [esp + 0x43c]
call fcn.0040fcf0
add esp, 8
lea eax, [esp + 0x434]
push eax
call edi
lea ecx, [esp + 0x434]
call fcn.0040a550
push 0
lea ecx, [esp + 0x820]
push ecx
lea edx, [esp + 0x13dc]
push edx
call ebp
cmp dword [esp + 0x18], 0
jne 0x40a2b0
lea ecx, [esp + 0x20]
call fcn.0041c256
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f98], 1
call fcn.0041c65e
mov byte [esp + 0x1f98], 0
mov eax, dword [esp + 0x1fa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1f98], 0xffffffff
mov eax, dword [esp + 0x1fa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x1f90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f78]
xor ecx, esp
call fcn.0042d298
add esp, 0x1f88
ret 8