Function at 0x533168
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 0x5331a2
xor eax, eax
jmp 0x53368e
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 0x5332c6
cmp byte [ebp - 0x3a], 0x44
jne 0x5332c6
cmp byte [ebp - 0x3b], 0x33
jne 0x5332c6
cmp byte [ebp - 0x3c], 2
je 0x533242
cmp byte [ebp - 0x3c], 3
je 0x533242
cmp byte [ebp - 0x3c], 4
jne 0x5332c6
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 0x533369
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.00530430
add esp, 8
test eax, eax
jne 0x533369
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0x10000
jl 0x5332cb
cmp dword [ebp - 8], 0
je 0x533378
cmp dword [ebp - 0x34], 0x10000
jne 0x53338e
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0x38], 0xffffffff
xor eax, eax
jmp 0x53368e
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 0x7ffbb9
push dword [ebp + 0x10]
call fcn.0066cae8
add esp, 0xc
test eax, eax
jne 0x5333e8
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 0x533416
test byte [ebp - 2], 8
je 0x533407
xor ecx, ecx
jmp 0x53340c
mov ecx, 1
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x533424
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 0x533455
mov ecx, 1
jmp 0x53345a
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 0x533493
mov edx, dword [ebp - 4]
shr edx, 0xa
and edx, 3
add edx, 6
mov dword [ebp - 0x10], edx
jmp 0x5334a7
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 + 0x7ff88c]
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 0xbc2a58
call fcn.00530164
add esp, 8
test eax, eax
je 0x5335c6
fild dword [0xbc2a64]
fmul dword [0x533694]
cmp dword [ebp - 0xc], 0
je 0x533527
mov ecx, 1
jmp 0x53352c
mov ecx, 2
mov dword [ebp - 0xf4], ecx
fild dword [ebp - 0xf4]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x7ff88c]
fdivp st(1)
mov edx, dword [0xbc2a68]
shl edx, 3
mov dword [ebp - 0xf8], edx
fild dword [ebp - 0xf8]
fdivrp st(1)
call fcn.00674c6c
mov dword [ebp - 0x40], eax
fild dword [0xbc2a64]
fmul dword [0x533694]
cmp dword [ebp - 0xc], 0
je 0x53357e
mov edx, 1
jmp 0x533583
mov edx, 2
mov dword [ebp - 0xfc], edx
fild dword [ebp - 0xfc]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x7ff88c]
fdivp st(1)
mov ecx, dword [ebp + 0xc]
fstp qword [ecx + 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [0xbc2a68]
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 0x533681
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax*4 + 0x7ff88c]
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 + 0x7ff6cc]
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 [0x533694]
cmp dword [ebp - 0xc], 0
je 0x53362b
mov ecx, 1
jmp 0x533630
mov ecx, 2
mov dword [ebp - 0x104], ecx
fild dword [ebp - 0x104]
fmulp st(1)
mov eax, dword [ebp - 0x10]
fild dword [eax*4 + 0x7ff88c]
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 + 0x7ff6cc]
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