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

Disassembly:
mov eax, 0x2720
call fcn.004180a0
mov eax, dword [0x421420]
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 0x4018f4
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x4018f4
cmp dword [ebp + 0x130], esi
lea edi, [ebp + 0x130]
je 0x4018eb
lea edx, [ebp + 8]
push edx
push eax
call fcn.00409a33
add esp, 8
cmp eax, 0xffffffff
je 0x4018ff
mov esi, edi
lea eax, [ebp + 0x2c]
mov dword [esi], eax
jmp 0x4018ff
call fcn.00409859
mov dword [eax], 9
test esi, esi
mov ebx, esi
je 0x401bbe
lea esp, [esp]
mov ebp, dword [ebx]
cmp byte [ebp], 0x2e
jne 0x401934
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401920
sub eax, edx
cmp eax, 2
jbe 0x401b6b
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13a4], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401942
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 0x401960
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.004013e0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401991
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 0x4019a5
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.004013e0
lea eax, [esp + 0x13a4]
call section..text
mov esi, eax
test esi, esi
je 0x401ad0
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x4019f3
push eax
call fcn.00409b62
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0x134]
push ecx
call fcn.004095a3
push esi
call fcn.004095a3
add esp, 8
cmp edi, 0xffffffff
jne 0x401a18
call fcn.00409859
mov dword [eax], 9
lea edx, [esp + 0x1c]
push edx
push str.Copying_DIR__s_n
call fcn.0040a3e4
call fcn.00409e01
add eax, 0x20
push eax
call fcn.0040a0fa
add esp, 0xc
lea eax, [esp + 0x1c]
call section..text
mov esi, eax
test esi, esi
je 0x401a83
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401a5c
push eax
call fcn.00409b62
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x134]
push eax
call fcn.004095a3
push esi
call fcn.004095a3
add esp, 8
cmp edi, 0xffffffff
jne 0x401a9a
call fcn.00409859
mov dword [eax], 9
jmp 0x401a9a
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a5d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x401be0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13a8]
push eax
call fcn.00401880
mov edi, eax
add esp, 8
test edi, edi
je 0x401b6b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x13a8]
push edx
push str.Failed_to_copy__s_to__s_n
jmp 0x401bf2
lea ecx, [esp + 0x1c]
push ecx
push str.Copying_FILE__s_n
call fcn.0040a3e4
call fcn.00409e01
add eax, 0x20
push eax
call fcn.0040a0fa
lea edx, [esp + 0x13b0]
push 0x41cc98
push edx
call fcn.0040a56d
mov edi, eax
add esp, 0x14
test edi, edi
je 0x401c07
lea eax, [esp + 0x1c]
push 0x41cdb4
push eax
call fcn.0040a56d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401c2c
push edi
push 0xc350
push 1
push 0x423388
call fcn.0040a859
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x401b54
push ebp
push esi
push 1
push 0x423388
call fcn.0040a98e
add esp, 0x10
cmp esi, 0xc350
je 0x401b28
push edi
call fcn.0040ae69
push ebp
call fcn.0040ae69
add esp, 8
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
je 0x401ba5
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x401ba5
cmp dword [ebx + 0x130], esi
lea edi, [ebx + 0x130]
je 0x401b9c
lea ecx, [ebx + 8]
push ecx
push eax
call fcn.00409a33
add esp, 8
cmp eax, 0xffffffff
je 0x401bb0
mov esi, edi
add ebx, 0x2c
mov dword [esi], ebx
jmp 0x401bb0
call fcn.00409859
mov dword [eax], 9
test esi, esi
mov ebx, esi
jne 0x401910
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.00409594
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.0040a3e4
mov esi, dword [esp + 0x1c]
add esp, 0xc
call fcn.00401150
mov eax, edi
jmp 0x401bc7
lea eax, [esp + 0x13a4]
push eax
push str.Unable_to_open_source_file_for_copy__s_n
call fcn.0040a3e4
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.00401150
mov eax, 1
jmp 0x401bc7
lea ecx, [esp + 0x1c]
push ecx
push str.Unable_to_open_destination_file_for_copy__s_n
jmp 0x401c14