Function at 0x100c8450
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x30]
sub esp, 0x30
push 0xffffffffffffffff
push 0x1016a956
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp + 0x2c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x38]
mov edi, dword [esi]
test edi, edi
jne 0x100c8493
xor al, al
jmp 0x100c8698
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100c86c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x4c], 0
je 0x100c865b
cmp dword [ebp - 0x34], 0
je 0x100c865b
cmp dword [ebp - 0x2c], 0
jne 0x100c862d
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x100c85ca
lea eax, [ebp + 0xc]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp + 0x24], xmm0
call fcn.100c6360
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 0
jne 0x100c8538
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x100c85b0
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100c85a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c86b7
jmp 0x100c85a6
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100c84f4
test edi, edi
je 0x100c84f4
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 8
lea eax, [ebp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100c859a
xorps xmm0, xmm0
movlpd qword [ebp + 0x24], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100c84f4
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], eax
mov edx, edi
mov word [ebp + 0xc], ax
mov ecx, ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
or edx, ecx
je 0x100c8654
lea ecx, [ebp + 4]
call fcn.10087e10
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
cmp edx, esi
ja 0x100c85f0
jb 0x100c8654
cmp eax, ecx
jb 0x100c8654
push esi
push ecx
push edx
push eax
call fcn.100c89b0
test al, al
je 0x100c865b
lea ecx, [ebp + 4]
call fcn.10087ff0
test eax, eax
js 0x100c8654
lea ecx, [ebp + 4]
call fcn.10087ff0
cmp eax, 3
jg 0x100c8654
call fcn.10130ff0
xor edx, edx
mov ecx, 0xf0
div ecx
cmp edx, 1
jne 0x100c865b
mov bl, dl
jmp 0x100c865d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100c8658
cmp ecx, eax
jbe 0x100c8658
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [ebp - 0x2c]
jb 0x100c865b
mov bl, 1
jmp 0x100c865d
mov dword [esi + 0x10], ecx
xor bl, bl
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.10003590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.10003590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.10003590
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.10003590
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 + 0x2c]
xor ecx, ebp
call fcn.1010cbf1
lea esp, [ebp + 0x30]
pop ebp
ret 4
call fcn.1012cb39
int3