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

Disassembly:
push 0xffffffffffffffff
push 0x41b410
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x28], edi
call fcn.00407a30
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x41ebc8
mov dword [esp + 0x38], edi
call fcn.00405700
add esp, 8
mov byte [esp + 0x30], 2
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 0x4032c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 0xc]
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp eax, edi
ja 0x403344
mov edx, dword [0x423ac4]
mov eax, dword [edx + 0xc]
mov ecx, 0x423ac4
call eax
mov esi, dword [esp + 0x38]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403326
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x403356
call fcn.0040bea2
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x403386
cmp eax, dword [esi]
jne 0x403386
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4033c1
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 0x40347d
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.004096c0
add esp, 0x10
lea ebp, [edi + 0x10]
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x30], 3
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
call fcn.0040b5eb
add esp, 0xc
test eax, eax
je 0x403416
add ebp, 0xfffffff0
mov byte [esp + 0x30], 2
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403406
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
inc ebx
cmp ebx, dword [esp + 0x20]
jb 0x403340
jmp 0x4032e5
mov eax, dword [ebp - 0xc]
lea ecx, [esp + 0x24]
push ecx
sub eax, esi
lea ecx, [esp + 0x40]
call fcn.00405550
lea ebx, [esp + 0x3c]
mov byte [esp + 0x30], 4
call fcn.00405bd0
mov ebx, eax
call fcn.00405400
mov esi, dword [esp + 0x3c]
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 0x403469
cmp eax, dword [esi]
jne 0x403469
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4034a5
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
jne 0x403482
call fcn.00406830
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.004096c0
add esp, 0x10
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x3c]
add edi, 0x10
add eax, 0xfffffff0
mov dword [esi], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032fe
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x4032fe