Function at 0x403680
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [edi + 0xc]
sub esp, 0x10
cmp dword [eax], 1
jg 0x42b2f7
mov eax, dword [edi]
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov dword [edi + 4], ebx
mov byte [eax], bl
mov byte [esp + 0xd], bl
add esi, 8
cmp dword [esi + 8], ebx
je 0x42b317
xor ebp, ebp
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 8]
je 0x4037a4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov cl, byte [eax + edx]
mov byte [esp + ebp + 0x20], cl
inc ebp
inc eax
mov dword [esi + 0xc], eax
cmp ebp, 1
jb 0x4036b1
add dword [esi + 0x10], ebp
adc dword [esi + 0x14], ebx
cmp ebp, ebx
je 0x4037cd
mov bl, byte [esp + 0x20]
cmp bl, 0xd
je 0x403724
cmp bl, 0xa
je 0x403742
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
mov byte [esp + 0xd], 1
jg 0x42b333
mov eax, dword [edi + 4]
add eax, 2
cmp dword [edi + 8], eax
jb 0x40374d
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov byte [eax + ecx], bl
inc dword [edi + 4]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov byte [eax + edx], 0
xor ebx, ebx
jmp 0x4036a6
lea eax, [esp + 0x20]
push eax
mov ebx, 1
call fcn.004037f0
test eax, eax
je 0x403742
cmp byte [esp + 0x20], 0xa
jne 0x42b440
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x41c2
jae 0x42b365
lea edx, [eax + eax]
mov dword [edi + 8], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x42b436
add eax, 0xf
shr eax, 4
shl eax, 4
push eax
mov dword [edi + 8], eax
call fcn.00412c3a
mov ebp, eax
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40379d
mov ecx, dword [edi + 4]
inc ecx
push ecx
push eax
push ebp
call fcn.00412490
mov edx, dword [edi]
push edx
call fcn.0041294d
add esp, 0x10
mov dword [edi], ebp
jmp 0x40370c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x14]
push edx
push 0x10000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4036d4
jmp 0x42b328
cmp byte [esp + 0xd], 0
jne 0x403742
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
dec dword [eax]
push edi
call fcn.0043995f
push 0x10
mov dword [edi + 8], 0x10
call fcn.00412c3a
add esp, 4
mov dword [edi], eax
jmp 0x40368f
push esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00446193
jmp 0x4036af
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
jmp 0x4036bd
dec dword [eax]
push edi
call fcn.0043995f
mov edx, dword [edi + 4]
add edx, 2
push edx
call fcn.00447509
push eax
mov dword [edi + 8], eax
call fcn.00412c3a
mov ecx, dword [edi]
mov ebp, eax
mov eax, dword [edi + 4]
inc eax
push eax
push ecx
push ebp
call fcn.00412490
jmp 0x40379a
cmp eax, 0x2000000
jae 0x42b3ae
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b37e
fadd qword [0x48d260]
fmul qword [0x48d290]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
fldcw word [esp + 0xe]
jmp 0x40375e
cmp eax, 0x8000000
jae 0x42b3f7
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b3c7
fadd qword [0x48d260]
fmul qword [0x48d2a0]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], ecx
fldcw word [esp + 0xe]
jmp 0x40375e
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b409
fadd qword [0x48d260]
fmul qword [0x48d298]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edx, dword [esp + 0x14]
fldcw word [esp + 0xe]
jmp 0x40375b
mov eax, 0x10
jmp 0x403772
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0040f5e0
jmp 0x403742