Function at 0x1002fea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100510cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, ecx
push ebx
mov cl, byte [esp + 7]
mov dword [esp + 0x14], eax
add eax, 4
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 4]
push edi
mov dword [esp + 0x24], eax
mov byte [esi], cl
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [eax], 0x100588d4
mov ecx, dword [esi + 4]
cmp ecx, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], ebp
je 0x1002ff09
mov edx, dword [esi + 8]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x10030071
cmp ecx, ebp
jne 0x1002ff0d
xor edx, edx
jmp 0x1002ff15
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
mov eax, dword [esi + 8]
mov edi, 1
sub edi, edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov ebx, eax
sar edx, 2
cmp edx, edi
jae 0x1002ffd9
mov ecx, esi
call fcn.1002f150
cmp edi, eax
jae 0x1002ff47
mov ecx, esi
call fcn.1002f150
mov ebp, eax
jmp 0x1002ff49
mov ebp, edi
mov ecx, esi
call fcn.1002f150
add eax, ebp
mov dword [esp + 0x1c], eax
jns 0x1002ff5a
xor eax, eax
shl eax, 2
push eax
call fcn.10034d81
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push ebx
push ecx
mov ecx, esi
call fcn.10030ab0
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push edi
push eax
mov dword [esp + 0x24], eax
call fcn.10030ae0
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 8]
lea ecx, [eax + edi*4]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.10030ab0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.10032a30
mov edx, dword [esi + 4]
push edx
call fcn.10034d76
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.1002f150
add eax, edi
mov dword [esi + 4], ebp
lea edx, [ebp + eax*4]
mov dword [esi + 8], edx
jmp 0x10030099
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, edi
jae 0x1003002b
lea ebp, [edi*4]
mov ecx, esi
lea edx, [ebx + ebp]
push edx
push eax
push ebx
call fcn.10030ab0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, esi
sar edx, 2
sub edi, edx
push edi
push eax
call fcn.10030ae0
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x10030026
mov ecx, dword [esp + 0x14]
mov dword [ebx], ecx
add ebx, 4
cmp ebx, eax
jne 0x10030019
add dword [esi + 8], ebp
jmp 0x10030099
cmp edi, ebp
jbe 0x10030099
shl edi, 2
push eax
push eax
sub eax, edi
mov ecx, esi
push eax
call fcn.10030ab0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x10030058
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebx
mov dword [ecx], edx
jne 0x10030049
lea eax, [edi + ebx]
cmp ebx, eax
je 0x1003006c
mov ecx, dword [esp + 0x14]
mov dword [ebx], ecx
add ebx, 4
cmp ebx, eax
jne 0x1003005f
add dword [esi + 8], edi
jmp 0x10030099
jbe 0x10030099
mov eax, edx
lea edi, [ecx + 4]
cmp eax, edx
je 0x1003008a
mov ecx, dword [eax]
add eax, 4
mov dword [edi], ecx
add edi, 4
cmp eax, edx
jne 0x1003007c
mov edx, dword [esi + 8]
mov ecx, esi
push edx
push edi
call fcn.10032a30
mov dword [esi + 8], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [eax], fcn.10032a30
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret