Function at 0x10002320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007b242
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x10098688]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.10002590
mov eax, dword [0x100985e8]
push ecx
mov esi, esp
mov ecx, 0x100985e8
mov dword [esp + 0x30], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100923f6
mov dword [esp + 0x12c], 0
push 0
test eax, 0xffff0000
jne 0x100023c1
movzx edi, ax
push edi
call fcn.10004950
add esp, 8
test eax, eax
je 0x100023cd
push edi
push eax
mov ecx, esi
call fcn.10004a60
jmp 0x100023cd
push 0x100923f6
mov ecx, esi
call fcn.10004bd0
lea ecx, [esp + 0x38]
mov dword [esp + 0x12c], 0xffffffff
call fcn.10006a50
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x12c], 1
call fcn.1000b860
mov byte [esp + 0x128], 2
mov edx, dword [eax]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
cmp byte [edx], 0
jne 0x10002422
xor ecx, ecx
jmp 0x10002430
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002427
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.100056f0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov byte [esp + 0x134], 3
call fcn.10004490
cmp dword [esp + 0x28], 0x10
jb 0x10002466
push dword [esp + 0x14]
call fcn.1005a591
add esp, 4
mov byte [esp + 0x128], 1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100024a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.1000bb50
mov byte [esp + 0x128], 4
mov edx, dword [eax]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
cmp byte [edx], 0
jne 0x100024d9
xor ecx, ecx
jmp 0x100024e9
mov ecx, edx
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100024e0
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.100056f0
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x134], 5
call fcn.10004490
cmp dword [esp + 0x28], 0x10
jb 0x10002521
push dword [esp + 0x14]
call fcn.1005a591
add esp, 4
mov byte [esp + 0x128], 1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10002559
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x34]
call fcn.10006ec0
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1005c9a6
mov esp, ebp
pop ebp
ret