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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10017bfd
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
jne 0x10017c3d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_GetFileSizeEx
test eax, eax
jne 0x10017c3d
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
test eax, eax
sete al
shr eax, 1
sbb eax, eax
cmp dword [ebp - 0x1c], 0
seta bl
shr ebx, 1
sbb ebx, ebx
and eax, ebx
je 0x10017c9f
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x1c]
call fcn.10055a20
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.100545d0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.10058f30
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call sub.KERNEL32.dll_ReadFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10017c9f
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x14], 0
jne 0x10017e22
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.10058f30
cmp eax, 2
jle 0x10017cd9
mov eax, dword [ebp - 0x28]
movzx ebx, byte [eax]
cmp ebx, 0xef
sete bl
shr ebx, 1
sbb ebx, ebx
mov dword [ebp - 0x2c], ebx
jmp 0x10017ce0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
je 0x10017cfe
mov ebx, dword [ebp - 0x28]
movzx eax, byte [ebx + 1]
cmp eax, 0xbb
sete al
shr eax, 1
sbb eax, eax
mov dword [ebp - 0x30], eax
jmp 0x10017d05
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x10017d24
mov eax, dword [ebp - 0x28]
movzx ebx, byte [eax + 2]
cmp ebx, 0xbf
sete bl
shr ebx, 1
sbb ebx, ebx
mov dword [ebp - 0x34], ebx
jmp 0x10017d2b
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x10017d53
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 4
lea ebx, [ebp - 0x28]
push ebx
call fcn.10058f90
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.100545d0
jmp 0x10017e0f
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.10058f30
cmp eax, 1
jle 0x10017d7b
mov eax, dword [ebp - 0x28]
movzx ebx, byte [eax]
cmp ebx, 0xff
sete bl
shr ebx, 1
sbb ebx, ebx
mov dword [ebp - 0x38], ebx
jmp 0x10017d82
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x10017da0
mov ebx, dword [ebp - 0x28]
movzx eax, byte [ebx + 1]
cmp eax, 0xfe
sete al
shr eax, 1
sbb eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x10017da7
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x10017df4
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.10058f30
push eax
fild dword [esp]
add esp, 4
fdiv qword [0x10067c00]
fadd qword [0x10069b08]
sub esp, 8
fistp qword [esp]
pop eax
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
add eax, 2
push eax
call fcn.10016870
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.100545d0
jmp 0x10017e0f
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.10019ec0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.100545d0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
call fcn.100545d0
lea eax, [ebp - 0x28]
push eax
call fcn.10055990
lea eax, [ebp - 0xc]
push eax
call fcn.10059150
pop ebx
mov esp, ebp
pop ebp
ret 4