Function at 0x40a9b0
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x460
mov edi, edx
mov ebx, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041a5f6
add esp, 8
test eax, eax
je 0x40aa2b
mov esi, eax
mov eax, dword [0x4426f0]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40ac23
call fcn.00419e69
push dword [eax]
push esi
push ebx
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
push 0x4424e4
call fcn.00410520
add esp, 0x14
mov esi, 6
jmp 0x40ab24
movzx eax, word [esp + 0x1e]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40aaa3
push edi
call fcn.0041e16a
add esp, 4
mov esi, eax
test eax, eax
jns 0x40aaf6
call fcn.00419e69
cmp dword [eax], 0x11
je 0x40aaf6
mov eax, dword [0x4426f0]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40ac66
call fcn.00419e69
push dword [eax]
push esi
push ebx
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
push 0x4424e4
call fcn.00410520
add esp, 0x14
mov esi, 7
jmp 0x40ab24
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
test eax, eax
jne 0x40ab24
mov eax, dword [0x4426f0]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__lx
push 0x4424e4
call fcn.00410520
add esp, 0x14
mov esi, 0x3d
jmp 0x40ab24
mov dword [esp + 4], esi
push ebx
call fcn.00432590
add esp, 4
mov dword [esp + 8], eax
push eax
call fcn.00432630
add esp, 4
test eax, eax
jne 0x40ab3c
push dword [esp + 8]
call fcn.00432600
add esp, 4
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
mov dword [esp + 0xc], edi
mov edi, ebx
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x208]
mov dword [esp + 0x14], ecx
add eax, 0x410
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x250]
push 0x43adfe
push esi
call fcn.00420a8a
add esp, 8
test eax, eax
je 0x40abcc
push 0x43adfc
push esi
call fcn.00420a8a
add esp, 8
test eax, eax
je 0x40abcc
push esi
push edi
push str._s__s
push 0x104
push ebx
call fcn.00404340
add esp, 0x14
push ebx
push dword [ebp + 8]
call fcn.0041db99
add esp, 8
test eax, eax
je 0x40abcc
push ebx
push dword [esp + 0x18]
call fcn.0041db99
add esp, 8
test eax, eax
je 0x40abcc
push ebx
push dword [esp + 0x14]
call fcn.0041db99
add esp, 8
test eax, eax
jne 0x40abe3
push dword [esp + 8]
call fcn.00432630
add esp, 4
mov esi, eax
test eax, eax
jne 0x40ab61
jmp 0x40ab14
push esi
push dword [esp + 0x10]
push str._s__s
push 0x104
lea esi, [esp + 0x58]
push esi
call fcn.00404340
add esp, 0x14
mov ecx, ebx
mov edx, esi
push dword [ebp + 8]
call fcn.0040a9b0
add esp, 4
mov dword [esp + 4], 0
test eax, eax
je 0x40abcc
mov dword [esp + 4], eax
jmp 0x40ab14
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40aa06
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40aa06
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40aa7e
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40aa7e
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40aad4
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40aad4