Function at 0x401ca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2720
call fcn.00417c70
mov eax, dword [0x4234e0]
xor eax, esp
mov dword [esp + 0x271c], eax
mov eax, dword [esp + 0x2724]
mov ecx, dword [esp + 0x2728]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call section..text
mov ebp, eax
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x401d14
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x401d14
cmp dword [ebp + 0x130], esi
lea edi, [ebp + 0x130]
je 0x401d0b
lea edx, [ebp + 8]
push edx
push eax
call fcn.0040a133
add esp, 8
cmp eax, 0xffffffff
je 0x401d1f
mov esi, edi
lea eax, [ebp + 0x2c]
mov dword [esi], eax
jmp 0x401d1f
call fcn.00409f59
mov dword [eax], 9
test esi, esi
mov ebx, esi
je 0x401fc6
lea esp, [esp]
mov ebp, dword [ebx]
cmp byte [ebp], 0x2e
jne 0x401d54
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401d40
sub eax, edx
cmp eax, 2
jbe 0x401f73
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13a4], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401d62
lea edi, [esp + 0x13a4]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401d80
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
lea eax, [esp + 0x13a4]
call fcn.00401880
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401db1
lea edi, [esp + 0x1c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401dc5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
lea eax, [esp + 0x1c]
call fcn.00401880
lea eax, [esp + 0x13a4]
call section..text
mov esi, eax
test esi, esi
je 0x401ee2
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401e13
push eax
call fcn.0040a262
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0x134]
push ecx
call fcn.00409ca5
push esi
call fcn.00409ca5
add esp, 8
cmp edi, 0xffffffff
jne 0x401e38
call fcn.00409f59
mov dword [eax], 9
lea edx, [esp + 0x1c]
push edx
push str.Copying_DIR__s_n
call fcn.004014a0
add esp, 8
lea eax, [esp + 0x1c]
call section..text
mov esi, eax
test esi, esi
je 0x401e95
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401e6e
push eax
call fcn.0040a262
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x134]
push eax
call fcn.00409ca5
push esi
call fcn.00409ca5
add esp, 8
cmp edi, 0xffffffff
jne 0x401eac
call fcn.00409f59
mov dword [eax], 9
jmp 0x401eac
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040b054
mov edi, eax
add esp, 4
test edi, edi
jne 0x401fe8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13a8]
push eax
call fcn.00401ca0
mov edi, eax
add esp, 8
test edi, edi
je 0x401f73
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x13a8]
push edx
push str.Failed_to_copy__s_to__s_n
jmp 0x401ffa
lea ecx, [esp + 0x1c]
push ecx
push str.Copying_FILE__s_n
call fcn.004014a0
lea edx, [esp + 0x13ac]
push 0x41dedc
push edx
call fcn.0040aec6
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40200f
lea eax, [esp + 0x1c]
push 0x41dfe8
push eax
call fcn.0040aec6
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x402034
lea esp, [esp]
push edi
push 0xc350
push 1
push 0x425820
call fcn.0040b2dd
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x401f5c
push ebp
push esi
push 1
push 0x425820
call fcn.0040c00c
add esp, 0x10
cmp esi, 0xc350
je 0x401f30
push edi
call fcn.0040ca6f
push ebp
call fcn.0040ca6f
add esp, 8
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
je 0x401fad
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x401fad
cmp dword [ebx + 0x130], esi
lea edi, [ebx + 0x130]
je 0x401fa4
lea ecx, [ebx + 8]
push ecx
push eax
call fcn.0040a133
add esp, 8
cmp eax, 0xffffffff
je 0x401fb8
mov esi, edi
add ebx, 0x2c
mov dword [esi], ebx
jmp 0x401fb8
call fcn.00409f59
mov dword [eax], 9
test esi, esi
mov ebx, esi
jne 0x401d30
mov ebp, dword [esp + 0x10]
mov esi, ebp
call fcn.00401150
xor eax, eax
mov ecx, dword [esp + 0x272c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409c96
add esp, 0x2720
ret
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13a8]
push eax
push str.Failed_to_copy__s_to__s__could_not_create_target_folder__n
call fcn.004014a0
mov esi, dword [esp + 0x1c]
add esp, 0xc
call fcn.00401150
mov eax, edi
jmp 0x401fcf
lea eax, [esp + 0x13a4]
push eax
push str.Unable_to_open_source_file_for_copy__s_n
call fcn.004014a0
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.00401150
mov eax, 1
jmp 0x401fcf
lea ecx, [esp + 0x1c]
push ecx
push str.Unable_to_open_destination_file_for_copy__s_n
jmp 0x40201c