Function at 0x49402c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [esp + 4], 0x569c77
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4945a1
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x494577
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569e3b
lea esi, [ebp - 0x30]
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.0044092c
mov eax, dword [ebp - 0x30]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x4945cb
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x494287
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x50], 0
jmp 0x49411f
mov dword [ebp - 0x2c], 0
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x49435f
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea edx, [ebp - 0x2c]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov edi, eax
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1a]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x569e50
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00509af0
mov dword [esp + 0xc], esi
lea edx, [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x34]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x494303
test edi, edi
je 0x494335
mov esi, dword [ebp - 0x2c]
shl esi, 9
xor edi, edi
add esi, dword [ebx + 0x28]
adc edi, dword [ebx + 0x2c]
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], edi
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569e60
lea edx, [ebp - 0x38]
mov dword [esp], edx
call fcn.00509af0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x38]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4942d1
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569e77
lea esi, [ebp - 0x3c]
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.0044092c
mov eax, dword [ebp - 0x3c]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4942a6
inc dword [ebp - 0x50]
add dword [ebp - 0x54], 0x18
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x28], eax
ja 0x494118
fild qword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
js 0x49429e
fstp dword [ebx + 0x3c]
mov al, 1
add esp, 0x7c
pop ebx
pop esi
pop edi
leave
ret
fadd dword [0x569f50]
jmp 0x494291
cmp dword [0x554500], 0
jne 0x494389
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x494274
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x494274
cmp dword [0x554500], 0
jne 0x4943b9
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49422e
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49422e
cmp dword [0x554500], 0
jne 0x4943a1
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4941bd
lea ecx, [ebp - 0x21]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.005084ec
jmp 0x4941bd
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
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
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4942bc
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x494319
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4942e7
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
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 0x4945fe
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4940fa
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4940fa
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4945dd