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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x16b1d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
xor edx, edx
push ebp
push 0x16b1af
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x16b17e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x122a20]
call fcn.00123b20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x10]
call fcn.00017130
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00123bb0
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.00016c5c
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov edx, 0x16b1f8
call fcn.00016224
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov edx, 0x16b214
call fcn.00016224
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov edx, 0x16b230
call fcn.00016224
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 1
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0xc]
call fcn.00123d80
test al, al
jne 0x16b095
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00015adc
jmp 0x16b1c1
xor eax, eax
push ebp
push 0x16b16d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x16b24c
mov eax, dword [ebp - 0xc]
call fcn.00125024
test al, al
jne 0x16b0cb
call fcn.00015adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00015adc
jmp 0x16b1c1
mov edx, 0x16b26c
mov eax, dword [ebp - 0xc]
call fcn.00125024
test al, al
jne 0x16b0f3
call fcn.00015adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00015adc
jmp 0x16b1c1
xor ecx, ecx
mov edx, 0x16b24c
mov eax, dword [ebp - 0xc]
call fcn.00125840
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
xor ecx, ecx
mov edx, 0x16b26c
mov eax, dword [ebp - 0xc]
call fcn.00125840
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x16b13f
call fcn.00015adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00015adc
jmp 0x16b1c1
test ebx, ebx
jne 0x16b157
call fcn.00015adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00015adc
jmp 0x16b1c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16b174
mov eax, dword [ebp - 0xc]
call fcn.00123ddc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16b1de
lea eax, [ebp - 0x10]
call fcn.00016c4c
ret