Function at 0x408060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4121c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov dword [esp + 0x2c], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x30], 1
call fcn.00401540
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add esp, 4
test eax, eax
jl 0x4081ff
push 0x413328
push ecx
call fcn.0040a0b5
mov ecx, dword [esp + 0x18]
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x408202
sub eax, ecx
cmp eax, edi
je 0x408202
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x3c], 2
call fcn.004047d0
add esp, 0x10
test al, al
je 0x40816e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00407e10
add esp, 0x10
test al, al
je 0x408187
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401320
add esp, 4
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
call fcn.00408040
jmp 0x408187
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x413285
call fcn.004035b0
call fcn.00401320
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4081ea
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
or edi, 0xffffffff
push 0x413285
push ecx
call fcn.00409c3e
add esp, 8
test eax, eax
jne 0x4081a9
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00407e10
add esp, 0x10
test al, al
je 0x40826b
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401320
add esp, 4
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
call fcn.00408040
jmp 0x4081a9
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x3c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
mov byte [esp + 0x34], 3
call fcn.00401270
add esp, 4
push ebp
lea ecx, [esp + 0x20]
add eax, 0x10
push ebx
push ecx
mov dword [edi], eax
call fcn.004046b0
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00401320
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x2c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4082f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x2c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4081ea
mov ecx, dword [esi]
push esi
jmp 0x4081e5