Function at 0x40a7a0
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.0041aa02
add esp, 8
test eax, eax
je 0x40a82e
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aa5d
call fcn.0041a26c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
push 0x43f890
call fcn.00410af0
add esp, 0x14
mov edi, 6
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00412fa1
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 0x40a989
push ebx
call fcn.0041dc2c
add esp, 4
mov edi, eax
test eax, eax
jns 0x40a860
call fcn.0041a26c
cmp dword [eax], 0x11
jne 0x40aa17
push esi
call fcn.00411aa0
add esp, 4
test eax, eax
je 0x40a9e3
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
push eax
call fcn.00411b40
add esp, 4
test eax, eax
je 0x40a974
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
jmp 0x40a8c6
push dword [esp + 8]
call fcn.00411b40
add esp, 4
mov ebx, eax
test eax, eax
je 0x40a974
push 0x438596
push ebx
call fcn.0041ffae
add esp, 8
test eax, eax
je 0x40a8b0
push 0x438594
push ebx
call fcn.0041ffae
add esp, 8
test eax, eax
je 0x40a8b0
push ebx
push esi
push str._s__s
push 0x104
push edi
call fcn.00403ef0
add esp, 0x14
push edi
push dword [ebp + 8]
call fcn.0041d5c6
add esp, 8
test eax, eax
je 0x40a8b0
push edi
push dword [esp + 0x18]
call fcn.0041d5c6
add esp, 8
test eax, eax
je 0x40a8b0
push edi
push dword [esp + 0x14]
call fcn.0041d5c6
add esp, 8
test eax, eax
je 0x40a8b0
push ebx
push dword [esp + 0x10]
push str._s__s
push 0x104
lea ebx, [esp + 0x58]
push ebx
call fcn.00403ef0
add esp, 0x14
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.0040a7a0
add esp, 4
test eax, eax
mov dword [esp + 4], 0
je 0x40a8b0
mov dword [esp + 4], eax
push dword [esp + 8]
call fcn.00411b10
add esp, 4
mov edi, dword [esp + 4]
jmp 0x40a816
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
jne 0x40a816
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aaa0
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 0x43f890
call fcn.00410af0
add esp, 0x14
mov edi, 0x3d
jmp 0x40a816
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aae3
call fcn.0041a26c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
jmp 0x40a804
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40ab26
call fcn.0041a26c
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
push 0x43f890
call fcn.00410af0
add esp, 0x14
mov edi, 7
jmp 0x40a816
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a7f6
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a7f6
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a9be
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a9be
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40aa04
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40aa04
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40aa38
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40aa38