Function at 0x408bf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x1445]
test al, al
je 0x408c10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esi + 0x143c]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
ja 0x408c2b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x2c]
mov edi, 1
sub ecx, eax
mov eax, dword [esi + 0x1414]
cmp eax, edi
mov dword [esp + 0x2c], ecx
mov byte [esi + 0x144d], 0
mov byte [esi + 0x1444], 0
mov byte [esp + 0x13], 0
je 0x408c66
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x54]
mov dword [esi + 0x1414], edi
mov ecx, dword [esi + 0x1428]
cmp ecx, 0xffffffff
jne 0x408c75
xor eax, eax
jmp 0x408c7d
mov eax, dword [esi + 0x1424]
add eax, ecx
mov bl, byte [esp + 0x28]
mov dword [esi + 0x1448], eax
xor edi, edi
mov eax, dword [esi + 0x1420]
mov ecx, dword [esi + 0x1424]
lea ebp, [esi + 0x1420]
cmp ecx, eax
jb 0x408d01
mov cl, byte [esi + 0x142c]
test cl, cl
jne 0x40903d
mov ecx, dword [esi + 0x1428]
cmp ecx, 0xffffffff
jne 0x408cbd
mov eax, 1
mov edx, dword [esi + 0x1408]
add ecx, eax
mov dword [esi + 0x1428], ecx
push 0
push ebp
lea ecx, [esi + 4]
push 0x1000
push ecx
push edx
mov dword [esi + 0x1424], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4090f5
mov eax, dword [ebp]
cmp eax, 0x1000
setb cl
mov byte [esi + 0x142c], cl
mov cl, byte [esi + 0x144d]
test cl, cl
jne 0x408feb
mov ebp, dword [esi + 0x1424]
mov ecx, dword [esp + 0x2c]
sub eax, ebp
sub ecx, edi
mov ebp, eax
mov dword [esp + 0x1c], ecx
cmp ebp, ecx
mov dword [esp + 0x18], ebp
mov edx, ebp
jb 0x408d2f
mov edx, ecx
mov eax, dword [esi + 0x1434]
mov dword [esp + 0x14], edx
cmp eax, 4
ja case.default.0x408d42
jmp dword [eax*4 + 0x4091c4]
test edx, edx
je 0x408fd4
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
cmp bl, 0xd
mov dword [esi + 0x1424], eax
je 0x408fcd
cmp bl, 0xa
je 0x408fcd
mov byte [edi + ecx], bl
inc edi
dec edx
jne 0x408d55
jmp 0x408fd4
test edx, edx
je 0x408fd4
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
test bl, bl
mov dword [esi + 0x1424], eax
je 0x408dbe
cmp bl, 0xd
je 0x408fcd
cmp bl, 0xa
je 0x408fcd
mov eax, dword [esp + 0x28]
inc edi
mov byte [edi + eax - 1], bl
jmp 0x408dca
cmp ecx, ebp
jae 0x408dc4
inc edx
dec ebp
inc dword [esi + 0x1440]
dec edx
jne 0x408d8c
jmp 0x408fd4
test edx, edx
je 0x408fd4
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
test bl, bl
mov dword [esi + 0x1424], eax
je 0x408e0b
cmp bl, 0xd
je 0x408fcd
cmp bl, 0xa
je 0x408fcd
mov byte [edi + ebp], bl
inc edi
jmp 0x408e22
mov cl, byte [esi + 0x1430]
mov byte [edi + ebp], cl
mov eax, dword [esi + 0x1440]
inc edi
inc eax
mov dword [esi + 0x1440], eax
dec edx
jne 0x408dde
jmp 0x408fd4
test edx, edx
je 0x408fd4
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
movsx ecx, bl
push ecx
mov dword [esi + 0x1424], eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x408e62
test bl, bl
je 0x408e62
mov byte [edi + ebp], bl
inc edi
jmp 0x408eb7
cmp bl, 0xd
je 0x408fcd
cmp bl, 0xa
je 0x408fcd
mov ecx, dword [esi + 0x1440]
xor edx, edx
test bl, bl
sete dl
add ecx, edx
test bl, bl
mov dword [esi + 0x1440], ecx
jne 0x408e9d
mov eax, dword [esi + 0x1430]
test eax, eax
jl 0x408e9d
mov byte [edi + ebp], al
inc edi
jmp 0x408eb7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x408eb7
mov ecx, dword [esp + 0x14]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x408e36
jmp 0x408fd4
test edx, edx
je 0x408fd4
jmp 0x408edd
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
cmp bl, 9
mov dword [esi + 0x1424], eax
jne 0x408f5a
mov ebp, dword [esp + 0x2c]
mov edx, edi
and edx, 7
mov ecx, 8
sub ecx, edx
lea edx, [ecx + edi]
cmp edx, ebp
jae 0x408fbd
test ecx, ecx
je 0x408fac
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov ebp, ecx
add edi, eax
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edi, edx
mov edx, dword [esp + 0x18]
cmp ecx, edx
ja 0x408f4c
dec ebp
jmp 0x408f4d
dec ecx
dec eax
jne 0x408f45
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
jmp 0x408fac
cmp bl, 0xa
je 0x408fcd
cmp bl, 0xd
je 0x408fcd
test bl, bl
je 0x408f73
mov ecx, dword [esp + 0x28]
inc edi
mov byte [edi + ecx - 1], bl
jmp 0x408fac
mov edx, dword [esi + 0x1440]
mov eax, dword [esi + 0x1430]
inc edx
test eax, eax
mov dword [esi + 0x1440], edx
jl 0x408f96
mov dl, al
mov eax, dword [esp + 0x28]
mov byte [edi + eax], dl
inc edi
jmp 0x408fac
cmp ecx, ebp
jae 0x408fac
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x408ed5
jmp 0x408fd4
dec eax
mov byte [esi + 0x1444], 1
mov dword [esi + 0x1424], eax
jmp 0x408fd4
mov byte [esi + 0x144d], 1
mov ecx, dword [esp + 0x2c]
mov al, byte [esi + 0x1444]
cmp edi, ecx
sete cl
or al, cl
mov byte [esi + 0x1444], al
mov al, byte [esi + 0x144d]
test al, al
je 0x40902a
mov al, byte [esi + 0x1438]
test al, al
je 0x409015
mov al, byte [esp + 0x13]
test al, al
jne 0x409015
mov edx, dword [esp + 0x28]
inc edi
mov byte [esp + 0x13], 1
mov byte [edi + edx - 1], bl
mov eax, dword [esi + 0x1424]
mov ecx, dword [esi + 0x1420]
cmp eax, ecx
jb 0x409049
jmp 0x408c89
mov al, byte [esi + 0x1444]
test al, al
jne 0x409181
jmp 0x408c89
mov byte [esi + 0x1445], 1
jmp 0x409181
mov ecx, dword [esi + 0x1424]
mov al, byte [ecx + esi + 4]
cmp al, 0xa
je 0x40905f
cmp al, 0xd
jne 0x409181
cmp al, bl
jne 0x409071
mov dl, byte [esi + 0x144c]
test dl, dl
je 0x409181
mov dl, byte [esi + 0x144c]
test dl, dl
je 0x40915f
lea ebp, [esi + 0x1420]
mov dword [esp + 0x2c], 0xffffffff
movsx edx, al
lea eax, [ecx + 1]
mov ecx, dword [ebp]
cmp eax, ecx
mov dword [esp + 0x20], edx
mov dword [esi + 0x1424], eax
jne 0x409137
mov al, byte [esi + 0x142c]
test al, al
jne 0x409140
mov eax, dword [esi + 0x1428]
cmp eax, 0xffffffff
jne 0x4090c6
mov ecx, 1
add eax, ecx
push 0
mov dword [esi + 0x1428], eax
lea eax, [esi + 4]
push ebp
push 0x1000
push eax
mov eax, dword [esi + 0x1408]
push eax
mov dword [esi + 0x1424], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409117
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413530
add esp, 4
mov dword [esi + 0x1410], eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov ebp, dword [ebp]
cmp ebp, 0x1000
setb cl
test ebp, ebp
mov byte [esi + 0x142c], cl
jbe 0x409140
movsx edx, byte [esi + 4]
mov dword [esp + 0x2c], edx
jmp 0x409140
movsx eax, byte [eax + esi + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
movsx edx, bl
cmp edx, ecx
jne 0x409159
cmp eax, 0xa
je 0x40917b
cmp eax, 0xd
je 0x40917b
cmp ecx, eax
jne 0x409181
jmp 0x40917b
mov dl, byte [esi + 0x1438]
test dl, dl
jne 0x409172
inc ecx
mov dword [esi + 0x1424], ecx
jmp 0x409181
mov ecx, dword [esp + 0x28]
inc edi
mov byte [edi + ecx - 1], al
inc dword [esi + 0x1424]
mov al, byte [esi + 0x1439]
test al, al
je 0x409193
mov edx, dword [esp + 0x28]
mov byte [edi + edx], 0
mov al, byte [esi + 0x1445]
test al, al
je 0x4091b8
test edi, edi
jne 0x4091b8
mov al, byte [esi + 0x144d]
test al, al
jne 0x4091b8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8