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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011e36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
xor ebx, ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x6c], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapLock]
test eax, eax
je 0x100031c7
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x54]
call fcn.1000bde0
mov ecx, dword [ebp - 0x50]
cmp ecx, ebx
je 0x100031ed
mov eax, dword [ebp - 0x4c]
sub eax, ecx
sar eax, 2
cmp eax, ebx
je 0x100031ed
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100029f0
lea ecx, [ebp - 0x40]
push ecx
call fcn.1000b910
add esp, 4
lea eax, [ebp - 0x70]
call fcn.1000c010
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + 0xc]
add ecx, 0xc
mov dword [ebp - 0x10], ecx
jne 0x10003234
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x10], eax
je 0x100033d8
mov ecx, eax
mov edi, dword [ecx]
cmp edi, ecx
je 0x100033c7
cmp edi, ebx
je 0x100033c7
cmp dword [edi + 0x18], ebx
je 0x100033bd
movzx eax, word [edi + 0x24]
cmp eax, 2
jbe 0x100033bd
cmp word [edi + 0x2c], 2
jbe 0x100033bd
mov ecx, dword [edi + 0x28]
shr eax, 1
push eax
xor edx, edx
push ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.10004540
mov byte [ebp - 4], 3
movzx eax, word [edi + 0x2c]
mov ecx, dword [edi + 0x30]
shr eax, 1
push eax
xor edx, edx
push ecx
lea esi, [ebp - 0x8c]
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x88], dx
call fcn.10004540
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
mov esi, dword [edi + 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], esi
cmp edx, 8
jae 0x100032cb
lea ecx, [ebp - 0x2c]
call fcn.1000a3b0
test eax, eax
jne 0x10003331
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], ebx
mov word [ebp - 0xa4], ax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp edx, 8
jae 0x100032fa
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.1000c8f0
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x30]
call fcn.10004430
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.10003f70
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x58], 8
mov ecx, dword [ebp - 0x6c]
jae 0x1000333d
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x2c]
cmp edx, 8
jae 0x10003348
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x5c]
push edx
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100033a3
mov ecx, dword [ebp - 0x88]
mov eax, 8
cmp dword [ebp - 0x74], eax
jae 0x10003371
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x1000337c
lea eax, [ebp - 0x2c]
push esi
push ecx
call fcn.10003470
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100033a3
mov eax, dword [ebp - 0x44]
push eax
push esi
call fcn.10003990
mov eax, esi
cdq
push edx
push eax
call fcn.1000b030
add esp, 0x10
lea ecx, [ebp - 0x8c]
call fcn.10003f70
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10003f70
mov ecx, dword [ebp - 0x10]
mov edi, dword [edi]
cmp edi, ecx
jne 0x1000323e
call fcn.100029f0
push ebx
push ebx
push ebx
push ebx
call fcn.10001940
add esp, 0x10
lea ecx, [ebp - 0x54]
push ecx
call fcn.1000bf20
add esp, 4
cmp dword [ebp - 0x14], ebx
je 0x100033f6
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x10003406
push eax
call fcn.1000f885
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1000344d
mov edi, dword [ebp - 0x38]
cmp eax, edi
je 0x10003444
lea esi, [eax + 0x1c]
cmp dword [esi], 8
jb 0x1000342b
mov edx, dword [esi - 0x14]
push edx
call fcn.1000f885
mov eax, dword [ebp - 0x3c]
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], cx
add esi, 0x20
lea edx, [esi - 0x1c]
cmp edx, edi
jne 0x10003417
push eax
call fcn.1000f885
add esp, 4
cmp dword [ebp - 0x58], 8
jb 0x1000345f
mov eax, dword [ebp - 0x6c]
push eax
call fcn.1000f885
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret