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

Disassembly:
push 0xffffffffffffffff
push 0x447159
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x1c], esi
mov ebx, 1
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffb
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc80
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 2
call fcn.004062f0
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b4d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffd
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00405d50
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 3
call fcn.004062f0
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b51e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx - 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], esi
call fcn.0040f150
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b547
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 4
call fcn.0040f150
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b576
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x40]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov edx, dword [esp + 0x18]
push 3
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
call fcn.00406050
mov byte [esp + 0x38], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b601
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b5f3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b5f3
push eax
call fcn.00401260
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40b5ea
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40b601
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401700
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b64c
cmp eax, dword [esi]
jne 0x40b64c
mov edi, esi
lock xadd dword [ecx], ebx
jmp 0x40b687
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b78f
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042c820
add esp, 0x10
add edi, 0x10
push edi
call fcn.0042cd26
mov esi, eax
lea eax, [edi - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
lea ebx, [esp + 0x28]
call fcn.0040ba80
mov byte [esp + 0x38], 6
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esp + 0x40]
mov ebp, eax
mov eax, dword [ecx]
mov ebx, dword [eax - 0xc]
mov esi, ebp
sub esi, eax
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + edx]
sub eax, edi
sar esi, 1
or eax, ecx
mov dword [esp + 0x24], edx
jge 0x40b70e
mov ecx, dword [esp + 0x40]
push edi
call fcn.00401100
mov edx, dword [esp + 0x24]
cmp esi, ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
ja 0x40b71b
lea ebp, [ecx + esi*2]
lea eax, [edx + edx]
push eax
push ebp
push eax
lea ecx, [ecx + ebx*2]
push ecx
call fcn.0042c820
add esp, 0x10
test edi, edi
jl 0x40b7f6
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40b7f6
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov word [edx + edi*2], 0
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 3
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jge 0x40b794
mov ebx, 1
jmp 0x40b590
call fcn.004011d0
mov byte [esp + 0x38], 1
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 0x40b7b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
push 0x80070057
call fcn.00401080
int3