Function at 0x1002c690
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008aefa
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], esi
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x64], edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x48], 0
jbe 0x1002c743
mov eax, dword [esi]
push 0x10097d3c
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10071f66
add esp, 0xc
test eax, eax
jne 0x1002c81e
push dword [ebp - 0x48]
call fcn.10074399
add esp, 4
push eax
call fcn.100744fe
add esp, 4
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.100062f0
push dword [ebp - 0x48]
xor esi, esi
call fcn.100741aa
add esp, 4
test eax, eax
jne 0x1002c7cc
mov edi, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x48]
cmova ecx, dword [ebp - 0x2c]
mov eax, edi
sub eax, esi
push eax
push 1
lea eax, [ecx + esi]
push eax
call fcn.100722e6
add esp, 0x10
test eax, eax
je 0x1002c7c9
push dword [ebp - 0x48]
add esi, eax
call fcn.100741aa
add esp, 4
test eax, eax
je 0x1002c793
mov edi, dword [ebp - 0x64]
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.100062f0
push dword [ebp - 0x48]
call fcn.100741d6
add esp, 4
push dword [ebp - 0x48]
test eax, eax
je 0x1002c813
call fcn.100742e9
add esp, 4
push dword [ebp - 0x48]
call fcn.100720dd
add esp, 4
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax], 0
jmp 0x1002c81b
call fcn.100720dd
add esp, 4
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002c8a2
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push eax
cmova edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
call fcn.10005880
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jne 0x1002c8f8
test ecx, ecx
je 0x1002c8a2
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002c883
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca95
push edx
push ecx
call fcn.10063694
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1002c8d6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c8cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca95
push ecx
push edx
call fcn.10063694
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push ecx
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.100063e0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea eax, [esi + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x80]
call fcn.10005d90
test al, al
jne 0x1002c99d
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1002c93e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1002c983
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c979
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca95
push ecx
push edx
call fcn.10063694
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jmp 0x1002c85c
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x1002c9b7
cmp dword [ebp - 0x30], 0xf
mov ecx, edi
push dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.10002e20
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1002c9c7
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1002ca0c
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ca02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca95
push ecx
push edx
call fcn.10063694
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test ecx, ecx
je 0x1002ca63
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002ca44
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca95
push edx
push ecx
call fcn.10063694
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1002c8d6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c8cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c8cc
call fcn.1006dd3f
int3