Function at 0x401faa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
and dword [ebp - 4], 0
push esi
mov esi, eax
test esi, esi
jne 0x401fc3
push 0xffffffffffffff9a
pop eax
jmp 0x40229b
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0xc]
push ebx
push edi
push 0
push eax
push dword [esi]
call fcn.00406695
add esp, 0xc
test eax, eax
jne 0x401fea
mov edi, dword [esi]
lea ebx, [ebp - 8]
call fcn.00401e23
test eax, eax
je 0x401ff0
or dword [ebp - 4], 0xffffffff
jmp 0x402000
cmp dword [ebp - 8], 0x2014b50
je 0x402000
mov dword [ebp - 4], 0xffffff99
push dword [esi]
lea edi, [ebp - 0x5c]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402013
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x58]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402026
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x54]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402039
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x50]
call fcn.00401de5
test eax, eax
pop ecx
je 0x40204c
or dword [ebp - 4], 0xffffffff
mov edi, dword [esi]
lea ebx, [ebp - 0x4c]
call fcn.00401e23
test eax, eax
je 0x40205e
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
shr eax, 0x10
mov edx, eax
mov edi, dword [esi]
and edx, 0x1f
mov dword [ebp - 0x18], edx
mov edx, eax
shr eax, 9
and eax, 0x7f
add eax, 0x7bc
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 0xb
and eax, 0x1f
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr edx, 5
and edx, 0xf
shr eax, 5
and ecx, 0x1f
dec edx
and eax, 0x3f
add ecx, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
call fcn.00401e23
test eax, eax
je 0x4020b8
or dword [ebp - 4], 0xffffffff
mov edi, dword [esi]
lea ebx, [ebp - 0x44]
call fcn.00401e23
test eax, eax
je 0x4020ca
or dword [ebp - 4], 0xffffffff
mov edi, dword [esi]
lea ebx, [ebp - 0x40]
call fcn.00401e23
test eax, eax
je 0x4020dc
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x3c]
call fcn.00401de5
test eax, eax
pop ecx
je 0x4020ef
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x38]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402102
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x34]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402115
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x30]
call fcn.00401de5
test eax, eax
pop ecx
je 0x402128
or dword [ebp - 4], 0xffffffff
push dword [esi]
lea edi, [ebp - 0x2c]
call fcn.00401de5
test eax, eax
pop ecx
je 0x40213b
or dword [ebp - 4], 0xffffffff
mov edi, dword [esi]
lea ebx, [ebp - 0x28]
call fcn.00401e23
test eax, eax
je 0x40214d
or dword [ebp - 4], 0xffffffff
mov edi, dword [esi]
lea ebx, [ebp - 0xc]
call fcn.00401e23
test eax, eax
je 0x40215f
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x3c]
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x402210
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x4021b2
cmp edi, dword [ebp + 0x14]
jae 0x402183
mov byte [edi + eax], cl
mov ebx, edi
jmp 0x402186
mov ebx, dword [ebp + 0x14]
cmp edi, ecx
jbe 0x4021a6
cmp dword [ebp + 0x14], ecx
jbe 0x4021a6
push dword [esi]
push 1
push ebx
push eax
call fcn.00406356
add esp, 0x10
cmp eax, 1
je 0x4021a6
or dword [ebp - 4], 0xffffffff
sub edi, ebx
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x402210
cmp dword [ebp + 0x18], ecx
je 0x402210
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp + 0x1c]
cmp edi, ebx
jae 0x4021c3
mov ebx, edi
cmp dword [ebp - 8], ecx
je 0x4021e4
push 1
push dword [ebp - 8]
push dword [esi]
call fcn.00406695
add esp, 0xc
test eax, eax
jne 0x4021e0
and dword [ebp - 8], eax
jmp 0x4021e4
or dword [ebp - 4], 0xffffffff
test edi, edi
jbe 0x402207
cmp dword [ebp + 0x1c], 0
jbe 0x402207
push dword [esi]
push 1
push ebx
push dword [ebp + 0x18]
call fcn.00406356
add esp, 0x10
cmp eax, 1
je 0x402207
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 8]
sub edi, ebx
add eax, edi
jmp 0x402216
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x38]
cmp dword [ebp - 4], 0
jne 0x402296
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x40227b
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x24]
cmp edi, ecx
jae 0x402236
mov byte [edi + ebx], 0
mov dword [ebp - 8], edi
jmp 0x402239
mov dword [ebp - 8], ecx
test eax, eax
je 0x402252
push 1
push eax
push dword [esi]
call fcn.00406695
add esp, 0xc
test eax, eax
je 0x402252
or dword [ebp - 4], 0xffffffff
test edi, edi
jbe 0x402275
cmp dword [ebp + 0x24], 0
jbe 0x402275
push dword [esi]
push 1
push dword [ebp - 8]
push ebx
call fcn.00406356
add esp, 0x10
cmp eax, 1
je 0x402275
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x402296
mov edi, dword [ebp + 8]
test edi, edi
je 0x40228a
push 0x14
pop ecx
lea esi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402296
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret