Function at 0x10022020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007b789
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x10098a04]
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x24], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
cmp edx, ebx
mov byte [esp + 0x24], 1
jne 0x10022080
xor eax, eax
jmp 0x1002208e
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022085
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.100048d0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
jle 0x100221a3
push 0x3f
push edi
call fcn.1006a2c9
add esp, 8
cmp eax, ebx
je 0x100221a3
sub eax, edi
mov esi, eax
cmp esi, ebx
jle 0x100221a3
mov ebp, dword [esp + 0x34]
jmp 0x100220d0
mov eax, ebp
inc esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100220d6
sub eax, edx
push eax
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.10008be0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
or edx, 1
push ebp
push eax
mov byte [esp + 0x2c], 2
mov dword [esp + 0x18], edx
call fcn.1006a17e
add esp, 8
test eax, eax
jne 0x10022138
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022114
sub eax, edx
add eax, esi
js 0x1002220d
cmp eax, dword [edi - 0xc]
jg 0x1002220d
cmp byte [eax + edi], 0x3d
jne 0x10022138
mov bl, 1
jmp 0x1002213a
xor bl, bl
test byte [esp + 0x10], 1
mov dword [esp + 0x24], 1
je 0x10022172
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
and edx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x10], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10022172
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [edi - 0xc]
jne 0x10022217
test esi, esi
jl 0x100221a3
cmp esi, eax
jge 0x100221a3
lea eax, [esi + edi]
push 0x26
push eax
call fcn.1006a2c9
add esp, 8
test eax, eax
je 0x100221a3
sub eax, edi
mov esi, eax
test esi, esi
jg 0x100220d0
mov esi, dword [esp + 0x2c]
push 0x10081bf2
mov ecx, esi
call fcn.10005e50
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100221d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100221f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0x80070057
call fcn.10001330
test esi, esi
jl 0x10022235
cmp esi, eax
jge 0x10022235
lea eax, [esi + edi]
push 0x3d
push eax
call fcn.1006a2c9
add esp, 8
test eax, eax
je 0x10022235
sub eax, edi
jmp 0x10022238
or eax, 0xffffffff
lea esi, [eax + 1]
test esi, esi
mov eax, dword [edi - 0xc]
jl 0x1002225e
cmp esi, eax
jge 0x1002225e
lea eax, [esi + edi]
push 0x26
push eax
call fcn.1006a2c9
add esp, 8
test eax, eax
je 0x1002225e
sub eax, edi
test eax, eax
jg 0x10022261
mov eax, dword [edi - 0xc]
sub eax, esi
push eax
push esi
mov esi, dword [esp + 0x34]
push esi
lea ecx, [esp + 0x20]
call fcn.10008be0
jmp 0x100221b3