Function at 0x40ac60
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x43d00c]
mov ebx, edx
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041a5d1
add esp, 8
test eax, eax
je 0x40acee
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aefe
call fcn.00419e3b
push dword [eax]
push esi
push edi
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x14
mov esi, 6
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, word [esp + 0x1e]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40ae55
mov dword [esp + 8], ebx
push ebx
call fcn.0041d7f0
add esp, 4
mov esi, eax
test eax, eax
jns 0x40ad24
call fcn.00419e3b
cmp dword [eax], 0x11
jne 0x40aeaf
mov dword [esp + 4], esi
push 0x210
call fcn.004123e0
add esp, 4
mov edx, edi
mov edi, eax
mov ecx, eax
mov dword [esp + 0x14], edx
push edx
call fcn.0040f500
push edi
call fcn.0040f590
add esp, 4
test eax, eax
je 0x40ae43
mov esi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x208]
lea eax, [eax + 0x410]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
nop
push 0x43826e
push esi
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x40ae30
push 0x43826c
push esi
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x40ae30
push esi
push dword [esp + 0x18]
push str._s__s
push 0x104
lea ebx, [esp + 0x260]
push ebx
call fcn.004043f0
add esp, 0x14
push ebx
push dword [ebp + 8]
call fcn.0041d18a
add esp, 8
test eax, eax
je 0x40ae30
push ebx
push dword [esp + 0x14]
call fcn.0041d18a
add esp, 8
test eax, eax
je 0x40ae30
push ebx
push dword [esp + 0x10]
call fcn.0041d18a
add esp, 8
test eax, eax
je 0x40ae30
push esi
push dword [esp + 0xc]
push str._s__s
push 0x104
lea esi, [esp + 0x58]
push esi
call fcn.004043f0
add esp, 0x14
lea ecx, [esp + 0x250]
mov edx, esi
push dword [ebp + 8]
call fcn.0040ac60
add esp, 4
test eax, eax
mov dword [esp + 4], 0
jne 0x40aef5
nop
nop
nop
push edi
call fcn.0040f590
add esp, 4
mov esi, eax
test eax, eax
jne 0x40ad70
push edi
call fcn.0040f560
add esp, 4
mov esi, dword [esp + 4]
jmp 0x40acd6
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
test eax, eax
jne 0x40acd6
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40af42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
push str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
push 0x43f844
call fcn.0040e940
add esp, 0x14
mov esi, 0x3d
jmp 0x40acd6
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40af86
call fcn.00419e3b
push dword [eax]
push esi
push edi
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x14
mov esi, 7
jmp 0x40acd6
mov dword [esp + 4], eax
jmp 0x40ae43
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40acb6
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40acb6
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40ae8a
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40ae8a
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40aed0
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40aed0