Function at 0x421fa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5fb490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x5d3fb8
push edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x60], ebx
call fcn.0054db4c
mov esi, eax
mov dword [ebp - 0x5c], esi
pop ecx
pop ecx
test esi, esi
jne 0x421fed
push 0x5d057d
mov ecx, edi
call fcn.00403d74
jmp 0x4221db
push 2
push ebx
push ebx
push esi
call fcn.0054d4ea
push esi
call fcn.0054e3de
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
call fcn.0054d4ea
push 0xc800
call fcn.0042328e
mov ebx, eax
add esp, 0x28
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jg 0x422072
jl 0x422034
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xfa000
ja 0x422075
push esi
push 0xc800
push 1
push ebx
call fcn.0054e332
add esp, 0x10
mov dword [ebp - 0x48], eax
xor edx, edx
test eax, eax
jle 0x422162
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x422058
test edi, edi
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x4c]
jg 0x422034
jmp 0x422162
mov ecx, dword [ebp - 0x44]
push 0
push 0x12
pop edx
sub ecx, 0x19000
mov dword [ebp - 0x50], edx
push edx
sbb eax, 0
push eax
push ecx
call fcn.005533c0
push esi
push 0xc800
push 1
push ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 8], edx
call fcn.0054e332
add esp, 0x10
mov dword [ebp - 0x40], eax
xor edx, edx
test eax, eax
jle 0x4220c2
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x4220b4
mov dword [ebp - 0x3c], eax
xor eax, eax
mov edi, 0xc800
mov dword [ebp - 0x40], eax
push 0
push eax
push edi
push esi
call fcn.0054d4ea
push esi
push 0xc800
push 1
push ebx
call fcn.0054e332
add esp, 0x20
mov dword [ebp - 0x54], eax
xor edx, edx
test eax, eax
jle 0x422107
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x54]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, esi
jl 0x4220f6
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
add edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
adc eax, dword [ebp - 8]
dec dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
jne 0x4220cc
mov eax, dword [ebp - 0x44]
mov edi, 0xc800
mov ecx, dword [ebp - 0x48]
sub eax, edi
push 0
sbb ecx, 0
push ecx
push eax
push esi
call fcn.0054d4ea
push esi
push edi
push 1
push ebx
call fcn.0054e332
mov edi, dword [ebp - 0x4c]
add esp, 0x20
xor edx, edx
mov dword [ebp - 8], eax
test eax, eax
jle 0x422162
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x422151
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
push esi
call fcn.0054da11
push ebx
call fcn.00423289
mov eax, dword [ebp - 0x44]
lea ebx, [ebp - 0x20]
add eax, 0x9d
imul eax, eax, 0xc
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
movzx eax, byte [ebp + esi - 0xc]
push eax
push str._02x
push 3
push ebx
call fcn.0054b9fc
add esp, 0x10
add ebx, 2
inc esi
cmp esi, 8
jl 0x422189
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x10], bl
call fcn.00403d74
lea eax, [ebp - 0x38]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
push eax
mov byte [edi], bl
call fcn.00403de5
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040400f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054b0f5
mov esp, ebp
pop ebp
ret