Function at 0x40ddb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x443cf0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
push 0x44b286
lea ecx, [esp + 0x18]
call fcn.004074b0
xor esi, esi
push 0x44b286
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
call fcn.004074b0
push 6
push esi
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
mov byte [esp + 0x30], 1
call fcn.00406a10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00407cb0
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 6
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00406900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00407cb0
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40de86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 6
jge 0x40de9a
push 0x80070057
call fcn.004072c0
mov cl, byte [eax + 6]
mov byte [esp + 0x2c], cl
xor edi, edi
push 1
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00406a10
mov eax, dword [eax]
push eax
call fcn.0042d511
mov ecx, esi
and ecx, 7
add ecx, 2
imul eax, ecx
add edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40deea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, 0xb
jle 0x40dea3
mov eax, 0x2e8ba2e9
imul edi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea ecx, [edx + ecx + 1]
imul ecx, ecx, 0xb
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
mov eax, 0x30
sub eax, edx
movsx edx, byte [esp + 0x2c]
add ecx, eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
cmp ecx, edx
lea ecx, [eax + 0xc]
jne 0x40df98
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4