Function at 0x100cb740
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x10101225
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10142008]
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, 0x1014614a
call fcn.100e3445
mov eax, dword [edi]
mov ecx, edi
mov byte [edi + 8], 0
call dword [eax]
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
push 4
call fcn.100e0d35
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 1
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 0
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x14]
push 0x80
push 3
push 1
push 0x80000000
push esi
call fcn.1009a320
test al, al
jne 0x100cb830
lea ecx, [ebp + 0x50]
call fcn.100cc5e0
mov byte [ebp - 4], 3
cmp dword [edi + 4], 0
je 0x100cb812
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.1001af80
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 + 0x50]
call fcn.10003460
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
xor bl, bl
mov esi, dword [ebp + 0x14]
jmp 0x100cba26
lea eax, [ebp + 4]
xorps xmm0, xmm0
push eax
lea ecx, [ebp + 0x14]
movlpd qword [ebp + 4], xmm0
call fcn.1009a4c0
mov eax, dword [ebp + 4]
or eax, dword [ebp + 8]
jne 0x100cb89f
lea ecx, [ebp + 0x38]
call fcn.10005c90
mov byte [ebp - 4], 9
cmp dword [edi + 4], 0
je 0x100cb881
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.1001af80
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 + 0x38]
call fcn.10003460
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
xor bl, bl
mov esi, dword [ebp + 0x14]
jmp 0x100cba26
xorps xmm0, xmm0
mov byte [ebp + 0x1f], 1
push 0x10000
mov dword [ebp + 0x68], 0
movlpd qword [ebp + 0xc], xmm0
call fcn.100e1947
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x10], ecx
nop dword [eax]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100cb9cd
test ebx, ebx
je 0x100cb9b5
cmp dword [esi], 0xffffffff
je 0x100cb9cd
push 0
lea eax, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push eax
push 0x10000
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cb9b5
cmp byte [edi + 8], 0
jne 0x100cb980
mov ecx, dword [ebp + 0x68]
test ecx, ecx
je 0x100cb9b2
mov eax, dword [edi]
push ecx
push ebx
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edi + 4]
adc ecx, 0
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x18], ecx
test eax, eax
je 0x100cb974
mov esi, dword [eax]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
call fcn.100e3900
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
movsd qword [ebp - 0x14], xmm0
call fcn.100e3900
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 + 0x68], 0
jmp 0x100cb8d0
lea ecx, [ebp + 0x20]
call fcn.10005c90
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x20]
push eax
push 0
mov ecx, edi
call fcn.100cba90
xor al, al
mov byte [ebp + 0x1f], al
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x20]
call fcn.10003460
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100cb9cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100cb9cd
mov dword [esi], 0xffffffff
push ebx
call fcn.100e0d73
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
call fcn.10005c90
mov byte [ebp - 4], 0x18
cmp dword [edi + 4], 0
je 0x100cba0f
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.1001af80
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.10003460
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
mov bl, byte [ebp + 0x1f]
mov dword [ebp - 4], 0x1e
test esi, esi
je 0x100cba5b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100cba49
test eax, eax
je 0x100cba49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100e0d65
add esp, 8
mov dword [ebp + 0x14], 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.100e0d24
lea esp, [ebp + 0x70]
pop ebp
ret 4