Function at 0x408360
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43e0e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00436ff1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
call fcn.00436ff1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x30], 1
call fcn.00436ff1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x38]
imul edi, edi, 0x5c
lea eax, [edi + 0x48704a]
push eax
lea ecx, [esp + 0x1c]
push 0x43fd80
push ecx
mov byte [esp + 0x3c], 2
call fcn.00406390
mov edx, dword [esi + 0x2574c]
add esp, 0xc
push ebx
push ebx
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4084f2
add esi, 0x25730
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x38]
push 0
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.00432cfc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x30], 3
je 0x408484
mov edx, dword [esi + 0xc]
test edx, edx
lea ebp, [esi + 0xc]
jl 0x408472
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x408472
push eax
call fcn.00405810
mov dword [esp + 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x408465
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ebp, dword [esp + 0x1c]
add ebp, 0x10
mov dword [esp + 0x10], ebp
jmp 0x408484
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00406260
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.0041f59d
add esp, 8
test eax, eax
je 0x4084c8
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x408411
jmp 0x4084f2
mov ecx, dword [edi + 0x487060]
push ecx
lea edx, [esp + 0x18]
push 0x43fe44
push edx
call fcn.00406390
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 0xc
push eax
push 2
push ebx
call fcn.00432ae4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x30], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408535
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x40855f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4