Function at 0x408c00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5277b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
xor edi, edi
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.004020b0
add eax, 0x10
mov dword [esp + 0x14], eax
push 3
push 0x535bac
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x34], edi
call fcn.00411670
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411670
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
push edi
mov byte [esp + 0x30], 1
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [0x531444]
lea esi, [ebx + 0x3c]
push 0x1004
push ecx
call ebp
test eax, eax
jle 0x408cde
push edi
push esi
lea eax, [esp + 0x20]
call fcn.0040d630
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.005006a9
add esp, 8
test eax, eax
je 0x408dbd
mov ecx, dword [esi]
push 0
push 0
push 0x1004
push ecx
add edi, 1
call ebp
cmp edi, eax
jl 0x408ca4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebx
call fcn.004071e0
mov edi, eax
test edi, edi
je 0x408e11
mov eax, dword [esi]
push 0
push 0
push 0x1004
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 0
push ecx
push esi
mov edx, eax
mov ecx, 1
call fcn.0040daf0
mov edx, dword [edi + 0x14]
add dword [ebx + 0x48], edx
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5759e8
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x28], 2
call fcn.0040d130
add eax, dword [ebx + 0x48]
lea edi, [esp + 0x34]
push eax
push 0x53572c
call fcn.00401f20
mov eax, dword [ebx + 8]
mov esi, dword [0x5313fc]
add esp, 8
push 0x42c
push eax
call esi
mov edi, dword [esp + 0x34]
push edi
push eax
call dword [0x53142c]
call fcn.0040d130
add eax, dword [ebx + 0x48]
cmp eax, 0x2800
jbe 0x408d95
mov ecx, dword [ebx + 8]
push 0x42d
push ecx
call esi
push 1
push eax
call dword [0x53143c]
lea eax, [edi - 0x10]
mov esi, 1
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408e15
mov byte [esp + 0x28], 0
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 0x408de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 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 0x408e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x408e64
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x28], 0
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 0x408e3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 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 0x408e62
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 8