Function at 0x451780
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 0x4517a0
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 0x4517bb
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 0x4517f6
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 0x451805
xor eax, eax
jmp 0x45180d
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 0x451891
mov cl, byte [esi + 0x142c]
test cl, cl
jne 0x451bcd
mov ecx, dword [esi + 0x1428]
cmp ecx, 0xffffffff
jne 0x45184d
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 0x451c85
mov eax, dword [ebp]
cmp eax, 0x1000
setb cl
mov byte [esi + 0x142c], cl
mov cl, byte [esi + 0x144d]
test cl, cl
jne 0x451b7b
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 0x4518bf
mov edx, ecx
mov eax, dword [esi + 0x1434]
mov dword [esp + 0x14], edx
cmp eax, 4
ja case.default.0x4518d2
jmp dword [eax*4 + 0x451d54]
test edx, edx
je 0x451b64
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 0x451b5d
cmp bl, 0xa
je 0x451b5d
mov byte [edi + ecx], bl
inc edi
dec edx
jne 0x4518e5
jmp 0x451b64
test edx, edx
je 0x451b64
mov eax, dword [esi + 0x1424]
mov bl, byte [eax + esi + 4]
inc eax
test bl, bl
mov dword [esi + 0x1424], eax
je 0x45194e
cmp bl, 0xd
je 0x451b5d
cmp bl, 0xa
je 0x451b5d
mov eax, dword [esp + 0x28]
inc edi
mov byte [edi + eax - 1], bl
jmp 0x45195a
cmp ecx, ebp
jae 0x451954
inc edx
dec ebp
inc dword [esi + 0x1440]
dec edx
jne 0x45191c
jmp 0x451b64
test edx, edx
je 0x451b64
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 0x45199b
cmp bl, 0xd
je 0x451b5d
cmp bl, 0xa
je 0x451b5d
mov byte [edi + ebp], bl
inc edi
jmp 0x4519b2
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 0x45196e
jmp 0x451b64
test edx, edx
je 0x451b64
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 0x4519f2
test bl, bl
je 0x4519f2
mov byte [edi + ebp], bl
inc edi
jmp 0x451a47
cmp bl, 0xd
je 0x451b5d
cmp bl, 0xa
je 0x451b5d
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 0x451a2d
mov eax, dword [esi + 0x1430]
test eax, eax
jl 0x451a2d
mov byte [edi + ebp], al
inc edi
jmp 0x451a47
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x451a47
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 0x4519c6
jmp 0x451b64
test edx, edx
je 0x451b64
jmp 0x451a6d
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 0x451aea
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 0x451b4d
test ecx, ecx
je 0x451b3c
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 0x451adc
dec ebp
jmp 0x451add
dec ecx
dec eax
jne 0x451ad5
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
jmp 0x451b3c
cmp bl, 0xa
je 0x451b5d
cmp bl, 0xd
je 0x451b5d
test bl, bl
je 0x451b03
mov ecx, dword [esp + 0x28]
inc edi
mov byte [edi + ecx - 1], bl
jmp 0x451b3c
mov edx, dword [esi + 0x1440]
mov eax, dword [esi + 0x1430]
inc edx
test eax, eax
mov dword [esi + 0x1440], edx
jl 0x451b26
mov dl, al
mov eax, dword [esp + 0x28]
mov byte [edi + eax], dl
inc edi
jmp 0x451b3c
cmp ecx, ebp
jae 0x451b3c
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 0x451a65
jmp 0x451b64
dec eax
mov byte [esi + 0x1444], 1
mov dword [esi + 0x1424], eax
jmp 0x451b64
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 0x451bba
mov al, byte [esi + 0x1438]
test al, al
je 0x451ba5
mov al, byte [esp + 0x13]
test al, al
jne 0x451ba5
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 0x451bd9
jmp 0x451819
mov al, byte [esi + 0x1444]
test al, al
jne 0x451d11
jmp 0x451819
mov byte [esi + 0x1445], 1
jmp 0x451d11
mov ecx, dword [esi + 0x1424]
mov al, byte [ecx + esi + 4]
cmp al, 0xa
je 0x451bef
cmp al, 0xd
jne 0x451d11
cmp al, bl
jne 0x451c01
mov dl, byte [esi + 0x144c]
test dl, dl
je 0x451d11
mov dl, byte [esi + 0x144c]
test dl, dl
je 0x451cef
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 0x451cc7
mov al, byte [esi + 0x142c]
test al, al
jne 0x451cd0
mov eax, dword [esi + 0x1428]
cmp eax, 0xffffffff
jne 0x451c56
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 0x451ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00465ff0
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 0x451cd0
movsx edx, byte [esi + 4]
mov dword [esp + 0x2c], edx
jmp 0x451cd0
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 0x451ce9
cmp eax, 0xa
je 0x451d0b
cmp eax, 0xd
je 0x451d0b
cmp ecx, eax
jne 0x451d11
jmp 0x451d0b
mov dl, byte [esi + 0x1438]
test dl, dl
jne 0x451d02
inc ecx
mov dword [esi + 0x1424], ecx
jmp 0x451d11
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 0x451d23
mov edx, dword [esp + 0x28]
mov byte [edi + edx], 0
mov al, byte [esi + 0x1445]
test al, al
je 0x451d48
test edi, edi
jne 0x451d48
mov al, byte [esi + 0x144d]
test al, al
jne 0x451d48
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