Function at 0x408a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d540
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4541fc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x45fb64]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fb64
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 1
mov eax, dword [0x45fb64]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fb64
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push eax
push 0x44a690
lea edi, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.0040be80
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x408c38
cmp dword [ebp - 0xc], 0
jl 0x408c38
push eax
push ebp
call fcn.00419a21
add esp, 8
test eax, eax
je 0x408c38
sub eax, ebp
sar eax, 1
mov edx, eax
cmp edx, 0xffffffff
je 0x408c38
mov eax, dword [esp + 0x34]
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b10
sub eax, esi
sar eax, 1
lea esi, [edx + eax + 1]
mov eax, dword [ebp - 0xc]
test esi, esi
jl 0x408b4d
cmp esi, eax
jg 0x408b4d
lea ecx, [ebp + esi*2]
push 0x44a698
push ecx
call fcn.00419a21
add esp, 8
test eax, eax
je 0x408b4d
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x408b50
mov eax, dword [ebp - 0xc]
cmp eax, esi
jle 0x408c38
lea edx, [esp + 0x14]
push edx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x20]
call fcn.0040a910
lea edi, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0040abe0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
push esi
push 0x44a690
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bf7
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 + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x28], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x28], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c7a
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 + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret