Function at 0x4039d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
jg 0x4265e9
mov eax, dword [edi]
mov dword [edi + 4], 0
mov byte [eax], 0
mov byte [ebp - 2], 0
cmp dword [esi + 8], 0
je 0x426609
xor ebx, ebx
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 8]
je 0x403aef
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov cl, byte [eax + edx]
mov byte [ebp + ebx - 1], cl
inc ebx
inc eax
mov dword [esi + 0xc], eax
cmp ebx, 1
jb 0x403a02
xor ecx, ecx
add dword [esi + 0x10], ebx
adc dword [esi + 0x14], ecx
cmp ebx, ecx
je 0x403b21
mov bl, byte [ebp - 1]
cmp bl, 0xd
je 0x403a73
cmp bl, 0xa
je 0x403a8f
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
mov byte [ebp - 2], 1
jg 0x42662d
mov eax, dword [edi + 4]
add eax, 2
cmp dword [edi + 8], eax
jb 0x403a97
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov byte [ecx + edx], bl
inc dword [edi + 4]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
jmp 0x4039f6
lea edx, [ebp - 1]
push edx
mov ebx, 1
call fcn.00403b40
test eax, eax
je 0x403a8f
cmp byte [ebp - 1], 0xa
jne 0x426726
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x41c2
jae 0x426663
lea edx, [eax + eax]
mov dword [edi + 8], edx
mov eax, dword [edi + 8]
cmp eax, ecx
je 0x42671c
add eax, 0xf
and eax, 0xfffffff0
push eax
mov dword [edi + 8], eax
call fcn.004114f7
mov ecx, dword [edi]
add esp, 4
test ecx, ecx
je 0x403ae8
mov edx, dword [edi + 4]
inc edx
push edx
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00410d80
mov eax, dword [edi]
push eax
call fcn.004110fc
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [edi], eax
jmp 0x403a5d
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0xc]
push edx
push 0x10000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a25
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x403a27
jmp 0x426622
cmp byte [ebp - 2], 0
jne 0x403a8f
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
invalid
dec dword [eax]
push edi
call fcn.00434a0f
push 0x10
push ds
in al, 0
add byte [edx + 0x10], ch
mov dword [edi + 8], 0x10
call fcn.004114f7
add dword [esp + eax - 0x35], 0x37
jmp 0xfdbff9e6
ja 0x426592
dec esi
mov dword [edx], eax
push eax
adc byte [eax], al
out 0xe4, eax
sbb al, 0x8c
dec eax
add esp, ebp
loopne 0x4265ed
inc ebx
cmp al, 0xe9
invalid
mov dword [edi - 0x78], eax
leave
pop esi
or al, 0xe9
div dword [ebx + 0x7d]
outsb dx, byte [esi]
dec dword [ecx]
push ebx
in al, dx
fisub word [ebx + 0x56ab4084]
mov dword [0x56ab4084], eax
test ebx, esi
ret 0xd202
jne 0x4266a9
or byte [ecx - 0x54ca8c15], al
inc ebp
dec edx
inc esp
loope 0x42661e
sar byte [ecx + 6], 1
pop esp
add al, 0x10
in eax, dx
dec eax
add byte [ebp + 0x42cd384b], dh
pushal
push ecx
jge 0x426682
dec dword [esi]
push cs
mov bh, 5
lcall 0x8120, 0x44a1d
inc ebp
sub ch, bl
insd dword es:[edi], dx
mov al, 0x58
popfd
in eax, dx
mov eax, dword [ebp - 4]
xchg ebx, eax
inc edi
add byte [ecx + 0x6c], al
cli
jmp 0xf803ae3
xor dword [ecx + 0x41d9f044], ecx
jo 0x426632
sar byte [edx + 6], 0x50
add eax, 0x244c920
pop esp
or eax, 0x800ccd4a
pop ecx
insd dword es:[edi], dx
cmp cl, byte [edi]
mov bl, 0x46
clc
or eax, dword [eax]
or eax, 0x45890020
pushal
fldenv [ebp - 0xc]
fidivr word [esi - 0x58]
or eax, dword [0x855c964]
fld dword [ecx - 0x48]
mov cl, 0x85
sar dword [ebp - 1], cl
test eax, 0x41dbf149
rol byte [edi - 0x21d18740], 1
add eax, 0x8109dd61
fsub qword [0x2248ce40]
fst dword [ebp + 0x4a]
dec edi
mov bh, 0x2c
xchg esp, eax
sbb eax, 0x200448
mov cl, 0x81
rcr cl, 1
insd dword es:[edi], dx
pushal
frstor dword [ebp - 0x1c]
mov eax, dword [ebp - 0x32]
mov dword [0xfa4cd188], eax
test al, 0x8a
mov cl, 0xfd
std
pop esp
adc byte [eax - 0x6c1efee0], ah
rcr dword [ecx + 0x6a816abf], 1
stc
push 0xffffffffffffff81
push 0xfffffffffffffff9
push 0x67
loopne 0x42676d
push 0xfffffffffffffffe
jmp 0xed224122
mov al, dl