Function at 0x10027170
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004198e
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xec]
mov eax, dword [ebp]
mov edx, dword [eax]
mov esi, ecx
xor ebx, ebx
mov ecx, ebp
mov byte [ebp + 8], bl
call edx
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x100271de
mov edi, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x1c], edi
jmp 0x100271e4
mov dword [esp + 0x1c], ebx
mov edi, ebx
mov dword [esp + 0x38], edi
cmp edi, ebx
mov dword [esp + 0xe4], ebx
je 0x10027223
cmp dword [esi + 0x18], 8
jb 0x100271fe
mov eax, dword [esi + 4]
jmp 0x10027201
lea eax, [esi + 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x100272c7
lea esi, [esp + 0x9c]
call fcn.100294b0
mov byte [esp + 0xe4], 1
cmp dword [ebp + 4], ebx
je 0x1002726b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov eax, esi
mov word [ecx + 4], bx
call fcn.100020a0
mov ebp, dword [ebp + 4]
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push ebx
mov ecx, ebp
call edx
cmp dword [esp + 0xb4], 8
jb 0x10027285
mov eax, dword [esp + 0xa0]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebx
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
je 0x100272c0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x100272b7
cmp eax, ebx
je 0x100272b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x100275ac
lea edi, [esp + 0x2c]
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10025aa0
mov ecx, dword [esp + 0x2c]
or ecx, dword [esp + 0x30]
jne 0x1002739a
mov esi, 7
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0xe4], 2
cmp dword [ebp + 4], ebx
je 0x1002735c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xa4]
mov word [ecx + 4], bx
call fcn.100020a0
mov ebp, dword [ebp + 4]
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebx
mov ecx, ebp
call eax
cmp dword [esp + 0x98], 8
jb 0x1002735c
mov ecx, dword [esp + 0x84]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1002738a
cmp eax, ebx
je 0x1002738a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x100275ac
push 0x10000
mov byte [esp + 0x1f], 1
mov dword [esp + 0x24], ebx
xor esi, esi
xor edi, edi
call fcn.1003ec98
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x100273c0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x100274ee
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0xffffffff
je 0x100274ee
push ebx
lea edx, [esp + 0x24]
push edx
push 0x10000
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100274ee
mov cl, byte [ebp + 8]
test cl, cl
jne 0x100274a5
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100274ee
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebp
call edx
add esi, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
adc edi, ebx
cmp ecx, ebx
mov dword [esp + 0x60], edi
je 0x1002749c
mov eax, edi
mov edx, edi
and eax, 0x7fffffff
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
and edx, 0x80000000
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
fild qword [esp + 0x3c]
mov dword [esp + 0x4c], ebx
fild qword [esp + 0x4c]
mov dword [esp + 0x44], edx
mov edx, eax
and eax, 0x7fffffff
fchs
mov dword [esp + 0x48], eax
faddp st(1)
and edx, 0x80000000
fild qword [esp + 0x44]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
fild qword [esp + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax]
sub esp, 8
fchs
faddp st(1)
fdivp st(1)
fstp qword [esp]
call eax
mov dword [esp + 0x20], ebx
jmp 0x100273c0
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
lea ecx, [esp + 0xb8]
push ecx
push ebx
mov esi, ebp
mov byte [esp + 0xec], 3
call fcn.100275e0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1b], bl
mov byte [esp + 0xe4], bl
call fcn.10001f30
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10027510
mov edx, dword [eax]
push edx
call edi
test eax, eax
je 0x10027510
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffffffff
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edx, dword [ebp]
mov eax, dword [edx + 8]
add esp, 4
mov ecx, ebp
call eax
mov eax, 7
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov byte [esp + 0xe4], 4
cmp dword [ebp + 4], ebx
je 0x1002758b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [ecx + 0x18], eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x88]
mov word [ecx + 4], bx
call fcn.100020a0
mov ebp, dword [ebp + 4]
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push 1
mov ecx, ebp
call eax
cmp dword [esp + 0x7c], 8
jb 0x1002758b
mov ecx, dword [esp + 0x68]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1002759f
cmp eax, ebx
je 0x1002759f
push eax
call edi
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x1f]
add esp, 4
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.1003ec9d
add esp, 0xd4
ret 4