Function at 0x40ee30
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45adc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4767b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00424b26
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00403960
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x40ee91
or esi, 0xffffffff
jmp 0x40eeb2
push 0x465920
push ecx
call fcn.00442b90
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x40eeac
or esi, 0xffffffff
jmp 0x40eeb2
sub eax, ecx
sar eax, 1
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
jle 0x40f01b
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
sub eax, esi
sub eax, 5
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.00406bb0
mov bl, 1
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x40ef46
push 0x26
push esi
call fcn.00443033
add esp, 8
test eax, eax
je 0x40ef46
sub eax, esi
sar eax, 1
js 0x40ef46
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f090
lea ecx, [edi + 0x170]
push eax
mov byte [esp + 0x2c], 2
call fcn.004028f0
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi - 0xc]
add esi, 0xffffffd8
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406bb0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call fcn.004028f0
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jle 0x40eff1
push 0x26
push esi
call fcn.00443033
add esp, 8
test eax, eax
je 0x40eff1
sub eax, esi
sar eax, 1
js 0x40eff1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f090
lea ecx, [edi + 0x174]
push eax
mov byte [esp + 0x2c], 4
call fcn.004028f0
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eff1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, edi
call fcn.0041dfb8
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f01b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004213a3
mov dword [esp + 0x28], 0xffffffff
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 0x40f04f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 4