Function at 0x497e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a144
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a3e5
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x38]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x498547
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a144
lea esi, [ebp - 0x3c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a3e5
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x3c]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x49842b
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a1f5
lea esi, [ebp - 0x40]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x40]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4984b1
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x498487
mov eax, dword [ebx + 0x2c]
or eax, dword [ebx + 0x28]
je 0x49834c
mov eax, dword [ebx]
mov edi, dword [eax + 8]
test edi, edi
je 0x4985dd
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a20a
lea esi, [ebp - 0x44]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x44]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x498363
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a220
lea esi, [ebp - 0x48]
mov dword [esp], esi
call fcn.00509af0
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x48]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4984e3
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x98], eax
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shl esi, 9
cmp edi, 0
jbe 0x4982d8
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a25c
lea edi, [ebp - 0x50]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x50]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4983c7
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
je 0x49845d
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a28f
lea esi, [ebp - 0x54]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x54]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4983f9
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov esi, eax
mov eax, dword [ebx]
mov edi, dword [eax + 8]
shl edi, 9
cmp esi, edi
je 0x49815f
lea eax, [ebp - 0x21]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a2a8
lea ecx, [ebp - 0x58]
mov dword [esp], ecx
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x58]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x4985ab
lea eax, [ebp - 0x22]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a2ce
lea edi, [ebp - 0x5c]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x5c]
lea edi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, edi
jne 0x498395
xor edi, edi
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
sub eax, esi
sbb edx, edi
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
fld dword [ebx + 0x3c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
fild qword [ebp - 0x90]
test edx, edx
js 0x498358
fstp dword [ebp - 0x7c]
fld dword [ebp - 0x7c]
fsubr st(1)
fdivrp st(1)
fmul dword [0x56a444]
fnstcw word [ebp - 0x7e]
mov ax, word [ebp - 0x7e]
mov ah, 0xc
mov word [ebp - 0x80], ax
fldcw word [ebp - 0x80]
fistp dword [ebp - 0x84]
fldcw word [ebp - 0x7e]
mov edi, dword [ebp - 0x84]
mov dword [ebx + 0x40], edi
lea eax, [ebp - 0x23]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a2e4
lea esi, [ebp - 0x60]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1000
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x60]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x498579
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a2e7
lea esi, [ebp - 0x64]
mov dword [esp], esi
call fcn.00509af0
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x64]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x498515
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x44]
add esp, 0xbc
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp - 0x98], esi
jae 0x498038
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a238
lea edx, [ebp - 0x4c]
mov dword [esp], edx
call fcn.00509af0
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x4c]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x498607
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shl esi, 9
jmp 0x498038
mov eax, dword [ebx]
mov edi, dword [eax + 8]
jmp 0x497f6b
fadd dword [0x56a440]
jmp 0x4981d5
cmp dword [0x554500], 0
jne 0x4986c9
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x497fb2
lea eax, [ebp - 0x2b]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x497fb2
cmp dword [0x554500], 0
jne 0x498651
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4981a6
lea eax, [ebp - 0x31]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4981a6
cmp dword [0x554500], 0
jne 0x498669
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49807f
lea eax, [ebp - 0x2e]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49807f
cmp dword [0x554500], 0
jne 0x498681
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4980dd
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4980dd
cmp dword [0x554500], 0
jne 0x4986f9
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x497f04
lea eax, [ebp - 0x29]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x497f04
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x4986b1
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x497f47
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x497f47
cmp dword [0x554500], 0
jne 0x4986e1
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49801b
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49801b
cmp dword [0x554500], 0
jne 0x498711
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4982b7
lea eax, [ebp - 0x33]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4982b7
cmp dword [0x554500], 0
jne 0x498741
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x497eb9
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x497eb9
cmp dword [0x554500], 0
jne 0x498639
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49824e
lea eax, [ebp - 0x32]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49824e
cmp dword [0x554500], 0
jne 0x498729
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49815f
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49815f
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x498699
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49833c
lea eax, [ebp - 0x2d]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49833c
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49858f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4983ab
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4983dd
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49840f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49861d
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4984c7
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x498379
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4984f9
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x498441
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49852b
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4985c1
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49855d