Function at 0x1002fcf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aa70c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov edx, ecx
push esi
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov dword [ebp - 4], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
lea esi, [edx + 0x10]
mov dword [esi], 0
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
lea edi, [edx + 0x38]
mov dword [edx + 0x30], 0
mov byte [edx + 0x34], 0
mov dword [ebp - 0x20], edi
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1002fda3
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 0x28]
mov dword [edi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edx + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [edx + 0x60], al
call fcn.1002fb20
mov edi, dword [esi]
xor ecx, ecx
mov esi, dword [esi + 0xc]
mov byte [ebp - 4], 6
mov byte [ebp + 0x37], 1
test esi, esi
jns 0x1002fde8
mov eax, esi
neg eax
cmp ecx, eax
jae 0x1002fde8
mov ecx, esi
mov edx, edi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x1002fdf2
add ecx, esi
mov eax, ecx
shr eax, 5
lea edx, [edi + eax*4]
sub edx, edi
and ecx, 0x1f
sar edx, 2
mov eax, SysReAllocString
shl edx, 5
sub eax, esi
add edx, ecx
mov dword [ebp - 0x18], edx
cmp eax, 1
jb 0x1003002e
lea ecx, [esi + 0x20]
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp + 8]
shr ecx, 5
mov esi, dword [esi + 4]
sub esi, edi
sar esi, 2
cmp ecx, esi
jae 0x1002fe39
lea eax, [edi + ecx*4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jmp 0x1002fe74
jbe 0x1002fe71
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
sub eax, edi
sar eax, 2
cmp ecx, eax
lea eax, [ebp - 0x1c]
jbe 0x1002fe58
push eax
push ecx
mov ecx, edx
call fcn.1002a160
jmp 0x1002fe6e
push edx
push eax
sub ecx, esi
push ecx
push dword [edx + 4]
call fcn.1002a290
mov edx, dword [ebp + 8]
add esp, 0x10
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xc]
test edi, edi
jne 0x1002fe8a
lea eax, [edi + 1]
mov dword [ecx + 0xc], eax
mov ecx, edx
neg ecx
jmp 0x1002ffbb
mov edx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [edx]
mov dword [ebp - 0x10], esi
test edi, edi
jns 0x1002feb4
mov eax, edi
neg eax
cmp ecx, eax
jae 0x1002feb4
mov ecx, edi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x1002febe
add ecx, edi
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
lea eax, [edi + 1]
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x10]
and ecx, 0x1f
mov dword [edx + 0xc], eax
xor edx, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x1002fef4
neg eax
cmp edx, eax
jae 0x1002fef1
mov edx, dword [ebp - 0x1c]
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edi, eax
jmp 0x1002fefe
mov eax, dword [ebp - 0x1c]
add edx, eax
mov eax, edx
shr eax, 5
lea edi, [edi + eax*4]
mov eax, dword [ebp - 0x18]
and edx, 0x1f
test eax, eax
jns 0x1002ff2b
mov dword [ebp - 0x1c], eax
xor esi, esi
neg dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x1c]
jae 0x1002ff2b
add eax, esi
mov dword [ebp - 0x20], eax
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub dword [ebp - 0x10], eax
jmp 0x1002ff46
xor esi, esi
add eax, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
shr eax, 5
lea esi, [esi + eax*4]
mov eax, dword [ebp - 0x18]
neg eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov eax, 0x1f
and eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x10], esi
jne 0x1002ff60
cmp eax, ecx
je 0x1002ffb5
test ecx, ecx
je 0x1002ff67
dec ecx
jmp 0x1002ff72
sub esi, 4
mov ecx, 0x1f
mov dword [ebp - 0x14], esi
test edx, edx
je 0x1002ff79
dec edx
jmp 0x1002ff7e
mov edx, 0x1f
cmp dword [ebp - 0x20], 0
lea eax, [edi - 4]
cmove edi, eax
mov eax, 1
mov dword [ebp - 0x20], edi
shl eax, cl
mov esi, dword [edi]
mov edi, dword [ebp - 0x14]
test dword [edi], eax
je 0x1002ffa8
mov edi, dword [ebp - 0x20]
bts esi, edx
mov dword [edi], esi
mov eax, dword [ebp - 0x2c]
jmp 0x1002ff51
mov edi, dword [ebp - 0x20]
btr esi, edx
mov dword [edi], esi
mov eax, dword [ebp - 0x2c]
jmp 0x1002ff51
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
xor eax, eax
test edx, edx
jns 0x1002ffdf
cmp eax, ecx
jae 0x1002ffdf
lea ecx, [eax + edx]
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x1002ffea
lea ecx, [eax + edx]
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
lea eax, [ebp + 0x37]
and ecx, 0x1f
push eax
push 1
push ecx
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.1002be10
mov ecx, dword [ebp + 0x30]
add esp, 0x14
test ecx, ecx
je 0x10030019
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x30
call fcn.1003a1f0
int3