Function at 0x533584
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov dword [ebp - 0x38], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x5335be
xor eax, eax
jmp 0x533aaa
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
push 0
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_GetFileSize
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
mov dword [ebp - 0x30], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 0x39]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea edx, [ebp - 8]
push edx
push 1
lea ecx, [ebp - 0x3a]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea eax, [ebp - 8]
push eax
push 1
lea edx, [ebp - 0x3b]
push edx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
cmp byte [ebp - 0x39], 0x49
jne 0x5336e2
cmp byte [ebp - 0x3a], 0x44
jne 0x5336e2
cmp byte [ebp - 0x3b], 0x33
jne 0x5336e2
cmp byte [ebp - 0x3c], 2
je 0x53365e
cmp byte [ebp - 0x3c], 3
je 0x53365e
cmp byte [ebp - 0x3c], 4
jne 0x5336e2
push 0
push 0
push 6
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 8]
push edx
push 1
lea ecx, [ebp - 0x39]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea eax, [ebp - 8]
push eax
push 1
lea edx, [ebp - 0x3a]
push edx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 0x3b]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea edx, [ebp - 8]
push edx
push 1
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
mov al, byte [ebp - 0x39]
shl eax, 0x15
xor edx, edx
mov dl, byte [ebp - 0x3a]
shl edx, 0xe
add eax, edx
xor ecx, ecx
mov cl, byte [ebp - 0x3b]
shl ecx, 7
add eax, ecx
xor edx, edx
mov dl, byte [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
push 0
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x34]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push 1
lea edx, [ebp - 1]
push edx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea edx, [ebp - 8]
push edx
push 1
lea ecx, [ebp - 3]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 0
lea eax, [ebp - 8]
push eax
push 1
lea edx, [ebp - 4]
push edx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 4]
shr ecx, 0x11
and ecx, 3
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 8], 0
je 0x533785
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.0053084c
add esp, 8
test eax, eax
jne 0x533785
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0x10000
jl 0x5336e7
cmp dword [ebp - 8], 0
je 0x533794
cmp dword [ebp - 0x34], 0x10000
jne 0x5337aa
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0x38], 0xffffffff
xor eax, eax
jmp 0x533aaa
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x30], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
sub dword [edx], ecx
push 2
push 0
push 0xffffffffffffff80
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push 0x80
push dword [ebp + 0x10]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
push 3
push 0x80d58d
push dword [ebp + 0x10]
call fcn.0066cf04
add esp, 0xc
test eax, eax
jne 0x533804
mov edx, dword [ebp + 0xc]
sub dword [edx], 0x80
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
test byte [ebp - 2], 0x10
je 0x533832
test byte [ebp - 2], 8
je 0x533823
xor ecx, ecx
jmp 0x533828
mov ecx, 1
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x533840
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 4]
shr edx, 0xc
and edx, 0xf
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
shr eax, 9
and eax, 1
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 4]
shr edx, 6
and edx, 3
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 3
jne 0x533871
mov ecx, 1
jmp 0x533876
mov ecx, 2
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 4]
shr eax, 0x11
and eax, 3
mov edx, 4
sub edx, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0
je 0x5338af
mov edx, dword [ebp - 4]
shr edx, 0xa
and edx, 3
add edx, 6
mov dword [ebp - 0x10], edx
jmp 0x5338c3
mov ecx, dword [ebp - 4]
shr ecx, 0xa
and ecx, 3
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [ebp - 0x10], ecx
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax*4 + 0x80d260]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
push 0xac
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
lea edx, [ebp - 0xf0]
push edx
push 0xbd042c
call fcn.00530580
add esp, 8
test eax, eax
je 0x5339e2
fild dword [0xbd0438]
fmul dword [0x533ab0]
cmp dword [ebp - 0xc], 0
je 0x533943
mov ecx, 1
jmp 0x533948
mov ecx, 2
mov dword [ebp - 0xf4], ecx
fild dword [ebp - 0xf4]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x80d260]
fdivp st(1)
mov edx, dword [0xbd043c]
shl edx, 3
mov dword [ebp - 0xf8], edx
fild dword [ebp - 0xf8]
fdivrp st(1)
call fcn.00675088
mov dword [ebp - 0x40], eax
fild dword [0xbd0438]
fmul dword [0x533ab0]
cmp dword [ebp - 0xc], 0
je 0x53399a
mov edx, 1
jmp 0x53399f
mov edx, 2
mov dword [ebp - 0xfc], edx
fild dword [ebp - 0xfc]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x80d260]
fdivp st(1)
mov ecx, dword [ebp + 0xc]
fstp qword [ecx + 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [0xbd043c]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], 1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x18], edx
jmp 0x533a9d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax*4 + 0x80d260]
shl edx, cl
mov ecx, dword [ebp - 0x20]
shl ecx, 6
mov eax, dword [ebp - 0xc]
shl eax, 3
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x80d0a0]
lea ecx, [eax + ecx]
mov eax, dword [ebp - 0x14]
imul eax, dword [ecx + eax*4], 0x23280
mov ecx, edx
cdq
idiv ecx
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cdq
idiv dword [ebp - 0x44]
mov dword [ebp - 0x100], eax
fild dword [ebp - 0x100]
fmul dword [0x533ab0]
cmp dword [ebp - 0xc], 0
je 0x533a47
mov ecx, 1
jmp 0x533a4c
mov ecx, 2
mov dword [ebp - 0x104], ecx
fild dword [ebp - 0x104]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x80d260]
fdivp st(1)
mov edx, dword [ebp + 0xc]
fstp qword [edx + 0x20]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x20]
shl ecx, 6
mov eax, dword [ebp - 0xc]
shl eax, 3
lea eax, [eax + eax*2]
lea edx, [eax*8 + 0x80d0a0]
lea ecx, [edx + ecx]
mov eax, dword [ebp - 0x14]
imul edx, dword [ecx + eax*4], 0x3e8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret