Function at 0x405400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.00405a2f
xor al, al
mov byte [ebp - 1], al
lea ebx, [ebx]
cmp dword [edi + 8], 0
je 0x43de98
xor esi, esi
lea esp, [esp]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
je 0x405519
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov al, byte [ecx + eax]
mov byte [ebp + esi + 0xb], al
inc esi
lea eax, [ecx + 1]
mov dword [edi + 0xc], eax
cmp esi, 1
jb 0x405430
add dword [edi + 0x10], esi
adc dword [edi + 0x14], 0
or esi, esi
je 0x405547
mov al, byte [ebp + 0xb]
mov byte [ebp - 1], 1
cmp al, 0xd
je 0x4054a8
cmp al, 0xa
je 0x4054c3
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
cmp eax, 1
jg 0x43dec7
mov eax, dword [ebx + 4]
add eax, 2
cmp dword [ebx + 8], eax
jb 0x4054ce
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov al, byte [ebp + 0xb]
mov byte [edx + ecx], al
inc dword [ebx + 4]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x405420
push 1
lea eax, [ebp + 0xb]
push edi
pop ecx
push eax
call fcn.00405d20
or eax, eax
je 0x4054c3
cmp byte [ebp + 0xb], 0xa
jne 0x43dfbc
pop edi
pop esi
mov al, 1
pop ebx
push ebp
pop esp
pop ebp
ret 4
cmp eax, 0x41c2
jae 0x43defa
add eax, eax
mov dword [ebx + 8], eax
test eax, eax
je 0x40555b
add eax, 0xf
and eax, 0xfffffff0
push eax
mov dword [ebx + 8], eax
call fcn.00420ff6
push eax
pop esi
add esp, 4
mov eax, dword [ebx]
or eax, eax
je 0x405512
mov ecx, dword [ebx + 4]
inc ecx
push ecx
push eax
push esi
call fcn.00421080
push dword [ebx]
call fcn.0042106c
add esp, 0x10
mov dword [ebx], esi
jmp 0x40548c
push 0
lea eax, [ebp - 8]
push eax
push 0x10000
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x405455
mov eax, dword [ebp - 8]
or eax, eax
je 0x405455
jmp 0x43deb8
mov al, byte [ebp - 1]
test al, al
jne 0x4054c3
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4
mov eax, 0x10
jmp 0x4054e8
mov ecx, edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00405dae
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
jmp 0x40542a
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
jmp 0x40543c
dec eax
mov dword [ecx], eax
mov ecx, ebx
call fcn.00456443
mov eax, dword [ebx + 4]
add eax, 2
push eax
call fcn.00405a4b
push eax
mov dword [ebx + 8], eax
call fcn.00420ff6
mov ecx, dword [ebx + 4]
push eax
pop esi
inc ecx
push ecx
push dword [ebx]
push esi
call fcn.00421080
jmp 0x40550f
cmp eax, 0x2000000
jae 0x43df3d
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
or eax, eax
jns 0x43df11
fadd qword [0x4bbac8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4b6f10]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x4054db
cmp eax, 0x8000000
jae 0x43df80
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
test eax, eax
jns 0x43df54
fadd qword [0x4bbac8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4b6f08]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x4054db
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
or eax, eax
jns 0x43df90
fadd qword [0x4bbac8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4b6f00]
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
fldcw word [ebp - 4]
jmp 0x4054db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
pop ecx
call fcn.00405c4e
jmp 0x4054c3