Function at 0x10019860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006f340
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.1001f440
add esp, 4
push eax
push edi
mov ecx, 0x10019250
mov dword [esp + 0x30], 0
call fcn.10019500
or ebx, 0xffffffff
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100198d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
call fcn.1001f3d0
add esp, 4
push eax
push edi
mov ecx, 0x10018fa0
mov dword [esp + 0x30], 1
call fcn.10019500
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10019916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x10]
call fcn.1001f2d0
push eax
push edi
mov ecx, 0x10018a00
mov dword [esp + 0x30], 2
call fcn.10019500
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.1001f350
push eax
push edi
mov ecx, 0x10018cd0
mov dword [esp + 0x30], 3
call fcn.10019500
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x10019994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.1001a2b0
mov esi, dword [edi + 0x3c]
cmp esi, dword [edi + 0x40]
lea ebx, [edi + 0x38]
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 0
jbe 0x100199c0
call fcn.1004984b
jmp 0x100199c0
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x18], eax
jbe 0x100199d1
call fcn.1004984b
cmp ebx, ebx
je 0x100199da
call fcn.1004984b
cmp esi, dword [esp + 0x18]
je 0x10019abf
cmp esi, dword [ebx + 8]
jb 0x100199ee
call fcn.1004984b
cmp byte [esi + 0x28], 0
jne 0x10019aaa
cmp esi, dword [ebx + 8]
jb 0x10019a02
call fcn.1004984b
cmp byte [esi + 0x29], 0
je 0x10019aaa
cmp esi, dword [ebx + 8]
jb 0x10019a16
call fcn.1004984b
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x10019aaa
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x10019a2d
xor ecx, ecx
jmp 0x10019a35
mov ecx, dword [edi + 0x30]
sub ecx, eax
sar ecx, 2
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
mov ecx, dword [edi + 0x2c]
test ecx, ecx
mov ebx, edx
je 0x10019a52
mov eax, dword [edi + 0x30]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x10019a57
call fcn.1004984b
cmp esi, dword [edi + 0x40]
mov edx, dword [edi + 0x2c]
lea ebx, [edx + ebx*4]
jb 0x10019a67
call fcn.1004984b
push ebx
mov ecx, esi
call fcn.1000d4b0
add dword [esp + 0x10], 1
cmp esi, dword [edi + 0x40]
jb 0x10019a7e
call fcn.1004984b
cmp byte [esi + 0x2a], 0
je 0x10019aaa
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x10019a8f
xor ecx, ecx
jmp 0x10019a97
mov ecx, dword [edi + 0x30]
sub ecx, eax
sar ecx, 2
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
xor edx, edx
div ecx
mov byte [esp + 0xf], 1
mov dword [edi + 0x54], edx
cmp esi, dword [edi + 0x40]
lea ebx, [edi + 0x38]
jb 0x10019ab7
call fcn.1004984b
add esi, 0x2c
jmp 0x100199c0
cmp byte [esp + 0xf], 0
jne 0x10019ae4
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x10019ad1
xor ecx, ecx
jmp 0x10019ad9
mov ecx, dword [edi + 0x30]
sub ecx, eax
sar ecx, 2
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
mov dword [edi + 0x54], edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret