Function at 0x1002c670
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 0x1008aeda
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 0x1002c723
mov eax, dword [esi]
push 0x10097d44
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10071f46
add esp, 0xc
test eax, eax
jne 0x1002c7fe
push dword [ebp - 0x48]
call fcn.10074379
add esp, 4
push eax
call fcn.100744de
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.1007418a
add esp, 4
test eax, eax
jne 0x1002c7ac
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.100722c6
add esp, 0x10
test eax, eax
je 0x1002c7a9
push dword [ebp - 0x48]
add esi, eax
call fcn.1007418a
add esp, 4
test eax, eax
je 0x1002c773
mov edi, dword [ebp - 0x64]
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.100062f0
push dword [ebp - 0x48]
call fcn.100741b6
add esp, 4
push dword [ebp - 0x48]
test eax, eax
je 0x1002c7f3
call fcn.100742c9
add esp, 4
push dword [ebp - 0x48]
call fcn.100720bd
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 0x1002c7fb
call fcn.100720bd
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 0x1002c882
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 0x1002c8d8
test ecx, ecx
je 0x1002c882
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002c863
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca75
push edx
push ecx
call fcn.10063674
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 0x1002c8b6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c8ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca75
push ecx
push edx
call fcn.10063674
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.10063317
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 0x1002c97d
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1002c91e
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 0x1002c963
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c959
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca75
push ecx
push edx
call fcn.10063674
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jmp 0x1002c83c
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x1002c997
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 0x1002c9a7
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 0x1002c9ec
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c9e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca75
push ecx
push edx
call fcn.10063674
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 0x1002ca43
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002ca24
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ca75
push edx
push ecx
call fcn.10063674
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 0x1002c8b6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c8ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c8ac
call fcn.1006dd1f
int3