Function at 0x4063b1
Capabilities:
Copy file
Create directory

Disassembly:
sub esp, 0x460
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x464]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
push edi
lea eax, [esp + 0x28]
mov ebx, edx
push eax
push esi
mov dword [esp + 0x2c], ebx
call fcn.0040d8ca
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406413
call fcn.0040dd78
push dword [eax]
push edi
push esi
push str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 6
pop eax
jmp 0x4065e8
mov eax, dword [esp + 0x2e]
mov ecx, 0x4000
and eax, 0xf000
cmp ax, cx
je 0x40645b
xor edi, edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406454
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
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 0x3d
pop edi
mov eax, edi
jmp 0x4065e8
push ebx
call fcn.0040d762
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x406495
call fcn.0040dd78
cmp dword [eax], 0x11
je 0x406495
call fcn.0040dd78
push dword [eax]
push ebx
push esi
push str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 7
jmp 0x40640d
mov ecx, esi
call fcn.0040665e
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4064b7
call fcn.0040dd78
push dword [eax]
push ebx
push esi
push str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
jmp 0x4063fd
mov ecx, eax
call fcn.0040669d
mov ebp, eax
test ebp, ebp
je 0x4065dd
xor edi, edi
mov ecx, 0x429350
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064f7
test dx, dx
je 0x4064f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4064d1
mov eax, edi
jmp 0x4064fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4065ca
mov ecx, 0x429290
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406531
test dx, dx
je 0x40652d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406531
add eax, 4
add ecx, 4
test dx, dx
jne 0x40650b
mov eax, edi
jmp 0x406536
sbb eax, eax
or eax, 1
test eax, eax
je 0x4065ca
push ebp
push esi
push 0x429354
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00401fe5
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.0041d556
pop ecx
pop ecx
test eax, eax
je 0x4065ca
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 0x208
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp eax, 3
jl 0x406563
push ebp
push dword [esp + 0x28]
lea eax, [esp + 0x268]
push 0x429354
push 0x104
push eax
call fcn.00401fe5
add esp, 0x14
lea edx, [esp + 0x260]
lea ecx, [esp + 0x58]
push dword [esp + 0x18]
call fcn.004063b1
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4065dd
mov ecx, dword [esp + 0x14]
call fcn.0040669d
mov ebp, eax
test ebp, ebp
jne 0x4064ca
mov ecx, dword [esp + 0x14]
call fcn.0040667e
mov eax, ebx
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x460
ret