Function at 0x10002fd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.10005e10
push eax
call dword [sym.imp.KERNEL32.dll_HeapLock]
test eax, eax
je 0x1000303c
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x20]
call fcn.1000d0c0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp eax, 4
jb 0x1000305a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.100029a0
lea ecx, [ebp - 0x2c]
call fcn.1000ca70
lea ecx, [ebp - 0x8c]
call fcn.1000d320
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov dword [ebp - 0x10], esi
jne 0x1000309f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov dword [ebp - 0x10], esi
je 0x100032f2
mov esi, dword [esi]
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
je 0x100032da
push ebx
push edi
mov edi, edi
test esi, esi
je 0x100032d8
cmp dword [esi + 0x18], 0
je 0x100032ce
movzx eax, word [esi + 0x24]
cmp eax, 2
jbe 0x100032ce
cmp word [esi + 0x2c], 2
jbe 0x100032ce
shr eax, 1
xor ecx, ecx
push eax
push dword [esi + 0x28]
mov word [ebp - 0x44], cx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.10004330
mov byte [ebp - 4], 3
xor ecx, ecx
movzx eax, word [esi + 0x2c]
shr eax, 1
push eax
push dword [esi + 0x30]
mov word [ebp - 0x5c], cx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
call fcn.10004330
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
mov edi, dword [ebp - 0x30]
mov ebx, dword [esi + 0x18]
mov edx, dword [ebp - 0x44]
cmp edi, 8
jb 0x1000313d
mov ecx, edx
call fcn.1000ad50
test eax, eax
jne 0x100031d1
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
cmp edi, 8
jb 0x10003166
mov ecx, edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x74]
call fcn.1000eb40
add esp, 4
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
jb 0x10003181
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
push eax
call fcn.10004330
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x100031cb
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100031c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000338f
push edx
push ecx
call fcn.1002e4ba
add esp, 8
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x78], 8
lea ecx, [ebp - 0x8c]
jb 0x100031e3
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
cmp edi, 8
jb 0x100031ed
mov eax, edx
push dword [ebp - 0x7c]
push ecx
push eax
call fcn.10032cd7
add esp, 0xc
test eax, eax
jne 0x1000323f
cmp dword [ebp - 0x48], 8
lea edx, [ebp - 0x5c]
jb 0x1000320a
mov edx, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
jb 0x10003216
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
call fcn.100033a0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000323f
mov edx, ebx
mov ecx, edi
call fcn.10003a00
sub esp, 8
mov eax, edi
cdq
push edx
push eax
call fcn.1000bdd0
add esp, 0x10
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x1000327d
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003273
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000338f
push edx
push ecx
call fcn.1002e4ba
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov edx, dword [ebp - 0x30]
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], eax
cmp edx, 8
jb 0x100032cb
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100032c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000338f
push edx
push ecx
call fcn.1002e4ba
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x100030b0
pop edi
pop ebx
call fcn.100029a0
push 0
push 0
push 0
push 0
or ecx, 0xffffffff
call fcn.10001900
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.1000d230
cmp dword [ebp - 0x14], 0
pop esi
je 0x1000330d
call fcn.10005e10
push eax
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x10003340
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10003336
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000338f
push ecx
push edx
call fcn.1002e4ba
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.100042b0
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x10003381
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003394
push edx
push ecx
call fcn.1002e4ba
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1003331c
call fcn.1003331c
int3