Function at 0x1002fc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100510ab
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], 0x10058bb4
mov ecx, dword [esi + 4]
cmp ecx, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], ebp
je 0x1002fc78
mov edx, dword [esi + 8]
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x1002fddc
cmp ecx, ebp
jne 0x1002fc7c
xor edx, edx
jmp 0x1002fc83
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 1
mov eax, dword [esi + 8]
mov edi, 1
sub edi, edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov ebx, eax
sar edx, 1
cmp edx, edi
jae 0x1002fd45
mov ecx, esi
call fcn.10031630
cmp edi, eax
jae 0x1002fcb4
mov ecx, esi
call fcn.10031630
mov ebp, eax
jmp 0x1002fcb6
mov ebp, edi
mov ecx, esi
call fcn.10031630
add eax, ebp
mov dword [esp + 0x1c], eax
jns 0x1002fcc7
xor eax, eax
add eax, eax
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.10031bc0
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push edi
push eax
mov dword [esp + 0x24], eax
call fcn.10031bf0
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 8]
lea ecx, [eax + edi*2]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.10031bc0
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*2]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.10031630
add eax, edi
mov dword [esi + 4], ebp
lea edx, [ebp + eax*2]
mov dword [esi + 8], edx
jmp 0x1002fe06
mov ecx, eax
sub ecx, ebx
sar ecx, 1
cmp ecx, edi
jae 0x1002fd93
lea ebp, [edi + edi]
mov ecx, esi
lea edx, [ebx + ebp]
push edx
push eax
push ebx
call fcn.10031bc0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, esi
sar edx, 1
sub edi, edx
push edi
push eax
call fcn.10031bf0
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x1002fd8e
mov cx, word [esp + 0x14]
mov word [ebx], cx
add ebx, 2
cmp ebx, eax
jne 0x1002fd7f
add dword [esi + 8], ebp
jmp 0x1002fe06
cmp edi, ebp
jbe 0x1002fe06
add edi, edi
push eax
push eax
sub eax, edi
push eax
mov ecx, esi
call fcn.10031bc0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x1002fdc1
mov dx, word [eax - 2]
sub eax, 2
sub ecx, 2
cmp eax, ebx
mov word [ecx], dx
jne 0x1002fdb0
lea eax, [edi + ebx]
cmp ebx, eax
je 0x1002fdd7
mov cx, word [esp + 0x14]
mov word [ebx], cx
add ebx, 2
cmp ebx, eax
jne 0x1002fdc8
add dword [esi + 8], edi
jmp 0x1002fe06
jbe 0x1002fe06
mov eax, edx
lea edi, [ecx + 2]
cmp eax, edx
je 0x1002fdf7
mov cx, word [eax]
add eax, 2
mov word [edi], cx
add edi, 2
cmp eax, edx
jne 0x1002fde7
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