Function at 0x40b250
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x460
mov ebx, edx
mov esi, ecx
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041a37f
add esp, 8
test eax, eax
je 0x40b2de
mov edi, eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b500
call fcn.004122fc
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x14
mov edi, 6
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00412b41
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 0x40b42c
push ebx
call fcn.0041d748
add esp, 4
mov edi, eax
test eax, eax
jns 0x40b310
call fcn.004122fc
cmp dword [eax], 0x11
jne 0x40b4ba
push esi
call fcn.004303f0
add esp, 4
test eax, eax
je 0x40b486
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
push eax
call fcn.00430490
add esp, 4
test eax, eax
je 0x40b417
mov ebx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x208]
mov dword [esp + 0x14], ecx
add eax, 0x410
mov dword [esp + 0x10], eax
lea edi, [esp + 0x250]
push 0x4387ea
push ebx
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40b3c8
push 0x4387e8
push ebx
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40b3c8
push ebx
push esi
push str._s__s
push 0x104
push edi
call fcn.00404cf0
add esp, 0x14
push edi
push dword [ebp + 8]
call fcn.0041d14f
add esp, 8
test eax, eax
je 0x40b3c8
push edi
push dword [esp + 0x18]
call fcn.0041d14f
add esp, 8
test eax, eax
je 0x40b3c8
push edi
push dword [esp + 0x14]
call fcn.0041d14f
add esp, 8
test eax, eax
jne 0x40b3dc
push dword [esp + 8]
call fcn.00430490
add esp, 4
mov ebx, eax
test eax, eax
jne 0x40b35d
jmp 0x40b417
push ebx
push dword [esp + 0x10]
push str._s__s
push 0x104
lea ebx, [esp + 0x58]
push ebx
call fcn.00404cf0
add esp, 0x14
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.0040b250
add esp, 4
mov dword [esp + 4], 0
test eax, eax
je 0x40b3c8
mov dword [esp + 4], eax
push dword [esp + 8]
call fcn.00430460
add esp, 4
mov edi, dword [esp + 4]
jmp 0x40b2c6
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
jne 0x40b2c6
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b543
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 0x4403e8
call fcn.00410340
add esp, 0x14
mov edi, 0x3d
jmp 0x40b2c6
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b586
call fcn.004122fc
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
jmp 0x40b2b4
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b5c9
call fcn.004122fc
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x14
mov edi, 7
jmp 0x40b2c6
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b2a6
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b2a6
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b461
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b461
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b4a7
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b4a7
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b4db
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b4db