Function at 0x401a80
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 0x401af4
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x401af4
cmp dword [ebp + 0x130], esi
lea edi, [ebp + 0x130]
je 0x401aeb
lea edx, [ebp + 8]
push edx
push eax
call fcn.00409993
add esp, 8
cmp eax, 0xffffffff
je 0x401aff
mov esi, edi
lea eax, [ebp + 0x2c]
mov dword [esi], eax
jmp 0x401aff
call fcn.004097b9
mov dword [eax], 9
test esi, esi
mov ebx, esi
je 0x401dbe
lea esp, [esp]
mov ebp, dword [ebx]
cmp byte [ebp], 0x2e
jne 0x401b34
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401b20
sub eax, edx
cmp eax, 2
jbe 0x401d6b
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13a4], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401b42
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 0x401b60
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.004015e0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401b91
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 0x401ba5
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.004015e0
lea eax, [esp + 0x13a4]
call section..text
mov esi, eax
test esi, esi
je 0x401cd0
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401bf3
push eax
call fcn.00409ac2
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0x134]
push ecx
call fcn.00409503
push esi
call fcn.00409503
add esp, 8
cmp edi, 0xffffffff
jne 0x401c18
call fcn.004097b9
mov dword [eax], 9
lea edx, [esp + 0x1c]
push edx
push str.Copying_DIR__s_n
call fcn.0040a3e4
call fcn.00409d61
add eax, 0x20
push eax
call fcn.0040a0f5
add esp, 0xc
lea eax, [esp + 0x1c]
call section..text
mov esi, eax
test esi, esi
je 0x401c83
mov eax, dword [esi]
or edi, 0xffffffff
cmp eax, 0xffffffff
je 0x401c5c
push eax
call fcn.00409ac2
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x134]
push eax
call fcn.00409503
push esi
call fcn.00409503
add esp, 8
cmp edi, 0xffffffff
jne 0x401c9a
call fcn.004097b9
mov dword [eax], 9
jmp 0x401c9a
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a5d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x401de0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13a8]
push eax
call fcn.00401a80
mov edi, eax
add esp, 8
test edi, edi
je 0x401d6b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x13a8]
push edx
push str.Failed_to_copy__s_to__s_n
jmp 0x401df2
lea ecx, [esp + 0x1c]
push ecx
push str.Copying_FILE__s_n
call fcn.0040a3e4
call fcn.00409d61
add eax, 0x20
push eax
call fcn.0040a0f5
lea edx, [esp + 0x13b0]
push 0x41ce6c
push edx
call fcn.0040a56d
mov edi, eax
add esp, 0x14
test edi, edi
je 0x401e07
lea eax, [esp + 0x1c]
push 0x41cf88
push eax
call fcn.0040a56d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401e2c
push edi
push 0xc350
push 1
push 0x423388
call fcn.0040a859
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x401d54
push ebp
push esi
push 1
push 0x423388
call fcn.0040a98e
add esp, 0x10
cmp esi, 0xc350
je 0x401d28
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 0x401da5
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x401da5
cmp dword [ebx + 0x130], esi
lea edi, [ebx + 0x130]
je 0x401d9c
lea ecx, [ebx + 8]
push ecx
push eax
call fcn.00409993
add esp, 8
cmp eax, 0xffffffff
je 0x401db0
mov esi, edi
add ebx, 0x2c
mov dword [esi], ebx
jmp 0x401db0
call fcn.004097b9
mov dword [eax], 9
test esi, esi
mov ebx, esi
jne 0x401b10
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.004094f4
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 0x401dc7
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 0x401dc7
lea ecx, [esp + 0x1c]
push ecx
push str.Unable_to_open_destination_file_for_copy__s_n
jmp 0x401e14