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

Disassembly:
mov eax, 0x2720
call fcn.004170f0
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 0x401d04
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x401d04
cmp dword [ebp + 0x130], esi
lea edi, [ebp + 0x130]
je 0x401cfb
lea edx, [ebp + 8]
push edx
push eax
call fcn.00409733
add esp, 8
cmp eax, 0xffffffff
je 0x401d0f
mov esi, edi
lea eax, [ebp + 0x2c]
mov dword [esi], eax
jmp 0x401d0f
call fcn.00409559
mov dword [eax], 9
test esi, esi
mov ebx, esi
je 0x401fb6
lea esp, [esp]
mov ebp, dword [ebx]
cmp byte [ebp], 0x2e
jne 0x401d44
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401d30
sub eax, edx
cmp eax, 2
jbe 0x401f63
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13a4], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401d52
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 0x401d70
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.00401860
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401da1
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 0x401db5
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.00401860
lea eax, [esp + 0x13a4]
call section..text
mov esi, eax
test esi, esi
je 0x401ed2
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401e03
push eax
call fcn.00409862
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0x134]
push ecx
call fcn.004092a3
push esi
call fcn.004092a3
add esp, 8
cmp edi, 0xffffffff
jne 0x401e28
call fcn.00409559
mov dword [eax], 9
lea edx, [esp + 0x1c]
push edx
push str.Copying_DIR__s_n
call fcn.00401480
add esp, 8
lea eax, [esp + 0x1c]
call section..text
mov esi, eax
test esi, esi
je 0x401e85
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401e5e
push eax
call fcn.00409862
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x134]
push eax
call fcn.004092a3
push esi
call fcn.004092a3
add esp, 8
cmp edi, 0xffffffff
jne 0x401e9c
call fcn.00409559
mov dword [eax], 9
jmp 0x401e9c
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a354
mov edi, eax
add esp, 4
test edi, edi
jne 0x401fd8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13a8]
push eax
call fcn.00401c90
mov edi, eax
add esp, 8
test edi, edi
je 0x401f63
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x13a8]
push edx
push str.Failed_to_copy__s_to__s_n
jmp 0x401fea
lea ecx, [esp + 0x1c]
push ecx
push str.Copying_FILE__s_n
call fcn.00401480
lea edx, [esp + 0x13ac]
push 0x41df0c
push edx
call fcn.0040a1be
mov edi, eax
add esp, 0x10
test edi, edi
je 0x401fff
lea eax, [esp + 0x1c]
push 0x41e028
push eax
call fcn.0040a1be
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x402024
lea esp, [esp]
push edi
push 0xc350
push 1
push 0x425398
call fcn.0040a5dd
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x401f4c
push ebp
push esi
push 1
push 0x425398
call fcn.0040b30c
add esp, 0x10
cmp esi, 0xc350
je 0x401f20
push edi
call fcn.0040bd6f
push ebp
call fcn.0040bd6f
add esp, 8
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
je 0x401f9d
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x401f9d
cmp dword [ebx + 0x130], esi
lea edi, [ebx + 0x130]
je 0x401f94
lea ecx, [ebx + 8]
push ecx
push eax
call fcn.00409733
add esp, 8
cmp eax, 0xffffffff
je 0x401fa8
mov esi, edi
add ebx, 0x2c
mov dword [esi], ebx
jmp 0x401fa8
call fcn.00409559
mov dword [eax], 9
test esi, esi
mov ebx, esi
jne 0x401d20
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.00409294
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.00401480
mov esi, dword [esp + 0x1c]
add esp, 0xc
call fcn.00401150
mov eax, edi
jmp 0x401fbf
lea eax, [esp + 0x13a4]
push eax
push str.Unable_to_open_source_file_for_copy__s_n
call fcn.00401480
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.00401150
mov eax, 1
jmp 0x401fbf
lea ecx, [esp + 0x1c]
push ecx
push str.Unable_to_open_destination_file_for_copy__s_n
jmp 0x40200c