Function at 0x40a3c0
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 esi, ecx
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00419fe2
add esp, 8
test eax, eax
je 0x40a44e
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a670
call fcn.0041984c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
mov edi, 6
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00412591
mov eax, edi
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 0x40a59c
push ebx
call fcn.0041d415
add esp, 4
mov edi, eax
test eax, eax
jns 0x40a480
call fcn.0041984c
cmp dword [eax], 0x11
jne 0x40a62a
push esi
call fcn.004110f0
add esp, 4
test eax, eax
je 0x40a5f6
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
push eax
call fcn.00411190
add esp, 4
test eax, eax
je 0x40a587
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [esp + 0x250]
lea ecx, [eax + 0x208]
add eax, 0x410
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push 0x4385ca
push ebx
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x40a538
push 0x4385c8
push ebx
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x40a538
push ebx
push esi
push str._s__s
push 0x104
push edi
call fcn.00403e90
add esp, 0x14
push edi
push dword [ebp + 8]
call fcn.0041cdaf
add esp, 8
test eax, eax
je 0x40a538
push edi
push dword [esp + 0x18]
call fcn.0041cdaf
add esp, 8
test eax, eax
je 0x40a538
push edi
push dword [esp + 0x14]
call fcn.0041cdaf
add esp, 8
test eax, eax
jne 0x40a54c
push dword [esp + 8]
call fcn.00411190
add esp, 4
mov ebx, eax
test eax, eax
jne 0x40a4cd
jmp 0x40a587
push ebx
push dword [esp + 0x10]
push str._s__s
push 0x104
lea ebx, [esp + 0x58]
push ebx
call fcn.00403e90
add esp, 0x14
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.0040a3c0
add esp, 4
test eax, eax
mov dword [esp + 4], 0
je 0x40a538
mov dword [esp + 4], eax
push dword [esp + 8]
call fcn.00411160
add esp, 4
mov edi, dword [esp + 4]
jmp 0x40a436
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
jne 0x40a436
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a6b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
mov edi, 0x3d
jmp 0x40a436
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a6f6
call fcn.0041984c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
jmp 0x40a424
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a739
call fcn.0041984c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
mov edi, 7
jmp 0x40a436
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a416
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a416
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a5d1
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a5d1
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a617
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a617
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a64b
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a64b