Function at 0x10018ef0
Capabilities:
Access peb ldr_data
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10052004]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
push edi
and al, 0x70
mov edi, ecx
mov dword [esp + 0x24], edi
cmp al, 0x10
jne 0x100330b7
test esi, 0x10000
jne 0x100196bd
cmp dword [ebp + 0xc], 2
mov ecx, esi
jne 0x10019651
call fcn.10006d2f
mov esi, dword [edi + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov edx, dword [esi + 8]
test dl, 0x20
jne 0x100330c1
test dl, 0x40
je 0x100330cb
xor ebx, ebx
test dl, 2
jne 0x100195d4
mov ecx, 0xc0
mov eax, edx
not eax
and eax, ecx
test dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
sete cl
not eax
and eax, edx
test eax, 0x300
sete al
test al, cl
je 0x100330fc
mov ecx, dword [esi + 0x60]
test ecx, ecx
jne 0x100195de
test ebx, ebx
js 0x10019631
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10033106
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov edi, dword [eax]
add edi, ecx
mov eax, dword [edi]
cmp eax, 0x4c464443
jne 0x100195af
call fcn.1001a850
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x10019626
mov ebx, 1
lock xadd dword [0x10052020], ebx
inc ebx
call fcn.1001a850
call fcn.1001a850
push 0xb0
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
cmp esi, fcn.100180d0
jne 0x1003310d
call fcn.100180d0
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x100331dc
mov dword [esi + 8], ebx
lea eax, [esi + 0x1c]
mov dword [esi + 0xc], 0
mov ecx, 8
mov dword [esi + 0x10], 0xffffffff
sub ecx, 1
mov dword [eax - 8], 0xffffffff
mov dword [eax - 4], 0xfffffffe
lea eax, [eax + 0xc]
mov dword [eax - 0xc], 0
jns 0x10019036
mov dword [esi + 0x80], 0
xor eax, eax
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x8c], eax
mov word [esi + 0x90], ax
mov dword [esi + 0xa8], eax
mov dword [esi + 4], eax
mov dword [esi], 0x52545344
mov eax, dword [edi + 0x14]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0x14]
test edx, edx
je 0x10033122
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov ecx, dword [eax]
add ecx, edx
lea eax, [esp + 0x38]
add ecx, 0x20c
push eax
push 0
push dword [ebp + 8]
push dword [edi + 0x18]
call fcn.1001e380
mov ebx, eax
test ebx, ebx
js 0x10019644
cmp dword [esp + 0x3c], 2
jne 0x10033129
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
test ebx, ebx
js 0x10019644
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10033133
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov edi, dword [eax]
add edi, ecx
movzx ecx, word [edi + 0x234]
add edi, 0x20c
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp ecx, 4
jne 0x100196d7
shr eax, 2
lea ecx, [esp + 0x2c]
push ecx
push 0xfffffffffffffffe
push 0
push eax
mov ecx, edi
call fcn.1001f720
mov ebx, eax
cmp ebx, 0x302ff
je 0x1003313a
test ebx, ebx
js 0x10019251
movzx ecx, word [edi + 0x28]
mov eax, ecx
mov dword [esp + 0x14], eax
cmp eax, 4
jne 0x100196e0
mov edx, dword [esp + 0x10]
and edx, 3
movzx eax, dx
shl eax, 7
add eax, dword [esp + 0x2c]
cmp ecx, 4
mov ecx, dword [eax + 0x78]
ja 0x10033171
xor eax, eax
mov dword [esi + 0x9c], eax
xor edx, edx
mov eax, dword [esp + 0x10]
mov dword [esi + 0x98], ecx
movzx ecx, word [edi + 0x28]
div ecx
mov edx, dword [edi + 8]
mov ecx, eax
mov dword [esp + 0x10], ecx
test edx, edx
je 0x10033192
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0xf80]
mov eax, dword [ecx]
add eax, edx
je 0x1003318e
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10033179
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x1003318e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
je 0x1003318e
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10033180
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x10033187
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
dec dword [eax + 0x1c]
mov eax, dword [esi + 0x98]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xa4], eax
test ebx, ebx
js 0x10019270
inc dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
test ecx, ecx
je 0x100331ce
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
test eax, eax
je 0x100331d5
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0xf80]
sub eax, dword [ecx]
mov dword [esi + 0x84], eax
mov eax, dword fs:[0x18]
mov dword [esi + 0x88], edx
mov ecx, dword [eax + 0xf80]
mov eax, esi
sub eax, dword [ecx]
mov ecx, 9
mov dword [esi + 0x80], eax
lea eax, [esi + 0x1c]
nop
mov dword [eax - 8], 0xffffffff
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0xfffffffe
mov dword [eax - 0xc], 0
sub ecx, 1
jne 0x100192d0
xor eax, eax
inc word [esi + 0x90]
mov dword [esi + 0x8c], eax
test ebx, ebx
js 0x10019644
mov dword [esp + 0xc], esi
xor ebx, ebx
test ebx, ebx
js 0x10019631
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], ebx
call fcn.1001a850
call fcn.1001a850
push 0x7c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
cmp esi, fcn.100180d0
jne 0x100331e6
call fcn.100180d0
mov edi, eax
test edi, edi
je 0x10033206
xor eax, eax
lea ebx, [edi + 0xc]
mov word [edi + 0x4c], ax
mov ecx, edi
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov byte [edi + 0x78], al
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x64], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x6c], 0
mov dword [edi + 8], eax
mov eax, dword fs:[0x18]
mov dword [edi + 0x54], 0
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
mov dword [edi + 0x58], ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x60], 1
movzx esi, word [ecx + 0x40]
cmp esi, 0x40
ja 0x100331f5
movzx eax, si
push eax
push ecx
push ebx
call sub.msvcrt.dll_memcpy
mov word [ebx + 0x40], si
add esp, 0xc
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x100331ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov edx, dword [eax]
add edx, ecx
mov eax, dword [edx + 0x60]
mov ecx, edi
mov ebx, dword [esp + 0x14]
mov dword [edi + 0x50], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
mov dword [edx + 0x60], ecx
mov dword [edi + 0x5c], 0
mov dword [edi], 0x54534250
test edi, edi
je 0x1003320d
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xf80]
mov eax, dword [esp + 0xc]
sub eax, dword [ecx]
mov dword [edi + 0x54], eax
mov dword [edi + 4], ebx
call fcn.1001a850
call fcn.1001a850
push 0x4c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
cmp esi, fcn.100180d0
jne 0x1003322a
call fcn.100180d0
mov ebx, eax
test ebx, ebx
je 0x10033281
mov eax, dword fs:[0x18]
lea ecx, [ebx + 0x24]
mov dword [ebx + 8], 0x10002dd8
mov dword [ebx + 0x24], 0
mov eax, dword [eax + 0xf80]
sub ecx, dword [eax]
mov dword [ebx + 0x24], ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x10], 0x10002e58
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], fcn.10011a30
mov dword [ebx + 4], 0x10001c48
mov dword [ebx + 8], 0x10001c6c
mov dword [ebx + 0xc], 0x10001cac
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x30], 0
mov eax, dword [edx + 0x5c]
mov esi, dword [edx + 0x58]
mov dword [esp + 0x14], eax
call fcn.1001a850
call fcn.1001a850
push 0x10
push eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], ecx
cmp ecx, fcn.100180d0
jne 0x10033239
call fcn.100180d0
test eax, eax
je 0x10033279
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], esi
lock inc dword [esi + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x40], 1
mov dword [ebx + 0x3c], 0x54535845
mov eax, dword [ecx + 0x5c]
add eax, 0x1c
lock inc dword [eax]
cmp dword [ecx + 0x3c], 0
jne 0x10033248
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100281a0
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x4c464457
jne 0x10033220
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push dword [esp + 0x20]
push dword [ebp + 8]
call fcn.1000a4dd
mov ebx, eax
jmp 0x1001930a
mov ecx, 0x40
jmp 0x10018f6b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov esi, dword [eax]
add esi, ecx
je 0x1001961d
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0xc]
call fcn.1000962e
test eax, eax
jne 0x100330d5
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1001961d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov esi, dword [eax]
add esi, ecx
jne 0x100195f3
mov esi, dword [esp + 0x18]
jmp 0x10018f9b
inc dword [ebx + 0xc]
mov ebx, dword [ebx + 0xc]
jmp 0x10018fe9
mov edi, dword [esp + 0xc]
test ebx, ebx
jns 0x10019439
mov eax, ebx
jmp 0x1001959b
push ecx
mov ecx, esi
call fcn.10013053
jmp 0x1001930a
lea eax, [esp + 0x30]
push eax
call fcn.10006d2f
mov ecx, dword [edi + 0x54]
push eax
push dword [ebp + 8]
call fcn.10023cf2
mov ebx, eax
test ebx, ebx
js 0x1001963d
call fcn.1001a850
mov ecx, 0x90
call fcn.100057a2
test eax, eax
je 0x100196ef
push dword [edi + 0x5c]
mov ecx, eax
push dword [edi + 0x58]
mov edi, dword [esp + 0x38]
push edi
call fcn.10019d30
mov esi, eax
test esi, esi
je 0x100332c3
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x5c]
add ecx, 0x1c
lock inc dword [ecx]
cmp dword [edx + 0x3c], 0
jne 0x10033292
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x10019599
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax + 0xc]
call fcn.100256ca
mov ebx, eax
test ebx, ebx
jns 0x10018f2a
jmp 0x1001963d
xor edx, edx
div ecx
jmp 0x1001913f
mov eax, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
jmp 0x10019180
mov edi, dword [esp + 0x30]
jmp 0x100332c3
mov ebx, 0x80030001
jmp 0x1001963d
mov ebx, 0x80030102
jmp 0x10019631
mov ebx, 0x80030005
jmp 0x10019631
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
shr edx, 2
and edx, eax
shr eax, 2
and eax, dword [esi + 8]
or edx, eax
test dl, 0xc0
je 0x10019604
mov ebx, 0x80030005
jmp 0x1001961d
mov ebx, 0x800300ff
jmp 0x10018f9b
xor edi, edi
jmp 0x10018fbe
mov ecx, esi
call dword [0x100532e8]
call esi
mov esi, eax
mov dword [esp + 0x28], eax
jmp 0x10019015
xor ecx, ecx
jmp 0x100190c4
mov ebx, 0x80030002
jmp 0x100192fc
xor edi, edi
jmp 0x1001911b
movzx eax, word [edi + 0x1c]
shr eax, 7
mov dword [esp + 0x34], eax
test eax, eax
je 0x10019166
mov esi, dword [esp + 0x2c]
mov edi, eax
push 0
mov ecx, esi
call fcn.10021009
sub esi, 0xffffff80
sub edi, 1
jne 0x10033153
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
jmp 0x10019166
mov eax, dword [eax + 0x7c]
jmp 0x10019198
xor eax, eax
jmp 0x100191f3
xor eax, eax
jmp 0x10019233
xor eax, eax
jmp 0x1001924e
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
test edx, edx
je 0x100331aa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, edx
jmp 0x100331ac
xor eax, eax
lea edx, [esp + 0x20]
push edx
push ecx
push dword [edi + 0x10]
mov ecx, eax
push edi
call fcn.10037374
test eax, eax
js 0x10019251
mov eax, dword [esp + 0x20]
jmp 0x1001924e
xor eax, eax
jmp 0x1001928e
xor eax, eax
jmp 0x100192a5
mov ebx, 0x80030008
jmp 0x1001930a
mov ecx, esi
call dword [0x100532e8]
call esi
jmp 0x10019340
mov esi, 0x40
jmp 0x100193c2
xor edx, edx
jmp 0x100193ef
xor edi, edi
jmp 0x10019419
mov ebx, 0x80030008
mov ecx, dword [esp + 0xc]
call fcn.100098f1
jmp 0x10019635
mov ebx, 0x80030001
jmp 0x10019631
mov ecx, esi
call dword [0x100532e8]
call esi
jmp 0x1001945c
call dword [0x100532e8]
call dword [esp + 0x28]
jmp 0x1001953f
lea eax, [ecx + 0x34]
push eax
lea ecx, [ebx + 0xc]
push ecx
add ecx, 4
call fcn.1003c187
mov edi, eax
test edi, edi
jns 0x10019594
mov ecx, dword [ebx]
push ebx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100532e8]
call esi
mov eax, edi
jmp 0x1001959b
push ecx
mov ecx, ebx
call fcn.10037189
mov ecx, edi
call fcn.10037614
mov eax, 0x80030008
jmp 0x1001959b
lea eax, [edx + 0x34]
lea ecx, [esi + 0x30]
push eax
push ecx
add ecx, 4
call fcn.1003c187
mov edi, eax
test edi, edi
jns 0x100196b3
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100532e8]
call esi
mov eax, edi
jmp 0x1001959b
mov ebx, 0x80030008
mov ecx, edi
call fcn.1000c6de
jmp 0x1001963d