Function at 0x10058bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x100933c5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x78]
mov ecx, 0x100c75db
call fcn.10085165
mov eax, dword [edi]
mov ecx, edi
mov byte [edi + 8], 0
call dword [eax]
mov dword [ebp + 0x68], 0
mov dword [ebp - 4], 0
push 4
call fcn.100826df
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 1
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 0
mov dword [ebp + 0x68], eax
mov dword [ebp - 4], 2
push 3
push ecx
push 0x80000000
push esi
lea ecx, [ebp + 0x68]
call fcn.10042510
test al, al
jne 0x10058cd7
lea ecx, [ebp + 0x4c]
call fcn.10059ef0
mov byte [ebp - 4], 3
cmp dword [edi + 4], 0
je 0x10058cb9
sub esp, 0x18
lea eax, [ebp + 0x4c]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.10008c50
mov byte [ebp - 4], 4
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [ebp - 4], 3
call dword [eax + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x4c]
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
xor bl, bl
mov esi, dword [ebp + 0x68]
jmp 0x10058eca
lea eax, [ebp + 4]
xorps xmm0, xmm0
push eax
lea ecx, [ebp + 0x68]
movlpd qword [ebp + 4], xmm0
call fcn.10042700
mov eax, dword [ebp + 4]
or eax, dword [ebp + 8]
jne 0x10058d46
lea ecx, [ebp + 0x34]
call fcn.10005000
mov byte [ebp - 4], 9
cmp dword [edi + 4], 0
je 0x10058d28
sub esp, 0x18
lea eax, [ebp + 0x34]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.10008c50
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [ebp - 4], 9
call dword [eax + 4]
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x34]
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
xor bl, bl
mov esi, dword [ebp + 0x68]
jmp 0x10058eca
xorps xmm0, xmm0
mov byte [ebp + 0x1b], 1
push 0x10000
mov dword [ebp + 0x64], 0
movlpd qword [ebp + 0xc], xmm0
call fcn.10082db0
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
mov esi, dword [ebp + 0x68]
test esi, esi
je 0x10058e71
test ebx, ebx
je 0x10058e59
cmp dword [esi], 0xffffffff
je 0x10058e71
push 0
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], 0
push eax
push 0x10000
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10058e59
cmp byte [edi + 8], 0
jne 0x10058e24
mov ecx, dword [ebp + 0x64]
test ecx, ecx
je 0x10058e56
mov eax, dword [edi]
push ecx
push ebx
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + 4]
adc ecx, 0
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
test eax, eax
je 0x10058e18
mov esi, dword [eax]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
call fcn.10085540
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
movsd qword [ebp - 0x14], xmm0
call fcn.10085540
movsd xmm1, qword [ebp - 0x14]
sub esp, 8
divsd xmm1, xmm0
mov ecx, dword [edi + 4]
movsd qword [esp], xmm1
call dword [esi]
mov dword [ebp + 0x64], 0
jmp 0x10058d74
lea ecx, [ebp + 0x1c]
call fcn.10005000
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x1c]
push eax
push 0
mov ecx, edi
call fcn.10058f30
xor al, al
mov byte [ebp + 0x1b], al
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x1c]
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x68]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10058e71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10058e71
mov dword [esi], 0xffffffff
push ebx
call fcn.10082a93
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
call fcn.10005000
mov byte [ebp - 4], 0x18
cmp dword [edi + 4], 0
je 0x10058eb3
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.10008c50
mov byte [ebp - 4], 0x19
mov ecx, dword [edi + 4]
push 1
mov eax, dword [ecx]
mov byte [ebp - 4], 0x18
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2c]
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
mov bl, byte [ebp + 0x1b]
mov dword [ebp - 4], 0x1e
test esi, esi
je 0x10058eff
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10058eed
test eax, eax
je 0x10058eed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.1008270f
add esp, 8
mov dword [ebp + 0x68], 0
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.100826ce
lea esp, [ebp + 0x70]
pop ebp
ret 4