Function at 0x403700
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [edi + 0xc]
sub esp, 0x10
cmp dword [eax], 1
jg 0x42b2e0
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 0x42b300
xor ebp, ebp
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 8]
je 0x403824
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 0x403731
add dword [esi + 0x10], ebp
adc dword [esi + 0x14], ebx
cmp ebp, ebx
je 0x40384d
mov bl, byte [esp + 0x20]
cmp bl, 0xd
je 0x4037a4
cmp bl, 0xa
je 0x4037c2
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
mov byte [esp + 0xd], 1
jg 0x42b31c
mov eax, dword [edi + 4]
add eax, 2
cmp dword [edi + 8], eax
jb 0x4037cd
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 0x403726
lea eax, [esp + 0x20]
push eax
mov ebx, 1
call fcn.00403870
test eax, eax
je 0x4037c2
cmp byte [esp + 0x20], 0xa
jne 0x42b429
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x41c2
jae 0x42b34e
lea edx, [eax + eax]
mov dword [edi + 8], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x42b41f
add eax, 0xf
shr eax, 4
shl eax, 4
push eax
mov dword [edi + 8], eax
call fcn.00412c2a
mov ebp, eax
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40381d
mov ecx, dword [edi + 4]
inc ecx
push ecx
push eax
push ebp
call fcn.00412480
mov edx, dword [edi]
push edx
call fcn.0041293d
add esp, 0x10
mov dword [edi], ebp
jmp 0x40378c
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 0x403754
jmp 0x42b311
cmp byte [esp + 0xd], 0
jne 0x4037c2
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
dec dword [eax]
push edi
call fcn.00439948
push 0x10
mov dword [edi + 8], 0x10
call fcn.00412c2a
add esp, 4
mov dword [edi], eax
jmp 0x40370f
push esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0044617c
jmp 0x40372f
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
jmp 0x40373d
dec dword [eax]
push edi
call fcn.00439948
mov edx, dword [edi + 4]
add edx, 2
push edx
call fcn.004474f2
push eax
mov dword [edi + 8], eax
call fcn.00412c2a
mov ecx, dword [edi]
mov ebp, eax
mov eax, dword [edi + 4]
inc eax
push eax
push ecx
push ebp
call fcn.00412480
jmp 0x40381a
cmp eax, 0x2000000
jae 0x42b397
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b367
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 0x4037de
cmp eax, 0x8000000
jae 0x42b3e0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b3b0
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 0x4037de
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x42b3f2
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 0x4037db
mov eax, 0x10
jmp 0x4037f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0040f680
jmp 0x4037c2