Function at 0x408f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446708
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
push 0x44ba38
push ebp
call dword [0x44b2e0]
mov esi, eax
test esi, esi
je 0x40901e
jmp 0x408f60
push 0x3e
push esi
call fcn.004335b0
mov edi, eax
add esp, 8
test edi, edi
je 0x40901e
inc edi
mov eax, edi
sub eax, esi
push eax
sub esi, ebp
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.00408050
push 0x44ba2c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.00408e60
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x34], 1
call fcn.00413820
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x40904d
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], esi
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44ba38
push edi
call dword [0x44b2e0]
mov esi, eax
test esi, esi
jne 0x408f60
mov edx, dword [0x46147c]
mov eax, dword [edx + 0xc]
mov ecx, 0x46147c
call eax
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
add esi, 8
push esi
push 0
lea ecx, [esp + 0x3c]
call fcn.00407cf0
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 0xc], 0
jge 0x40906b
or esi, 0xffffffff
jmp 0x40908a
push 0x44ba28
push ecx
call fcn.00432fe9
mov ecx, dword [esp + 0x3c]
add esp, 8
test eax, eax
jne 0x409086
or esi, 0xffffffff
jmp 0x40908a
sub eax, ecx
mov esi, eax
cmp dword [ecx - 0xc], 0
jge 0x409095
or eax, 0xffffffff
jmp 0x4090b0
push 0x44ba24
push ecx
call fcn.00432fe9
add esp, 8
test eax, eax
jne 0x4090ac
or eax, 0xffffffff
jmp 0x4090b0
sub eax, dword [esp + 0x34]
or edi, 0xffffffff
cmp esi, edi
je 0x4090c1
cmp eax, edi
je 0x4090bf
cmp esi, eax
jge 0x4090c1
mov eax, esi
cmp eax, edi
jne 0x4090e3
mov edx, dword [0x46147c]
mov eax, dword [edx + 0xc]
mov ecx, 0x46147c
call eax
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
jmp 0x4091d7
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00408050
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00405e40
mov eax, dword [esp + 0x18]
mov bl, 4
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40912a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x409152
push 0x44b96c
push ecx
call fcn.00432c67
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x409152
sub eax, ecx
sar eax, 1
cmp eax, edi
jne 0x409157
lea eax, [ecx - 0x10]
jmp 0x4091a1
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004081a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 5
call fcn.004030b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40919a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00402a70
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [esp + 0x2c], 0
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4091f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret