Function at 0x466a40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e2018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [0x4f75f0]
test al, 1
jne 0x466aa5
or eax, 1
mov dword [0x4f75f0], eax
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x466d13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4b9dd0
mov dword [0x4f75f4], eax
call fcn.00486a4b
add esp, 4
mov eax, dword [0x4f75f4]
cmp dword [eax - 0xc], 0
jne 0x466ce9
mov esi, dword [0x4f7118]
test esi, esi
je 0x466ac8
lock inc dword [esi + 4]
mov esi, dword [0x4f7118]
mov ecx, dword [0x4f7114]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0x50]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x466b0e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x466b0e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x466b0e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x4cca1c
push dword [ebp - 0x10]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.004776c0
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov esi, dword [0x4f75f4]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x466b81
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x466b73
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x466b73
call fcn.00416960
mov dword [ebp - 0x14], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x466b69
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [0x4f75f4], eax
jmp 0x466b81
push dword [edx - 0xc]
mov ecx, 0x4f75f4
push edx
call fcn.004044f0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466b9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x4f75f4]
cmp dword [eax - 0xc], 0
jne 0x466cca
lea ecx, [ebp - 0x14]
call fcn.004785f0
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [0x4f75f4]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x466c11
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x466c03
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x466c03
call fcn.00416960
mov dword [ebp - 0x18], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x466bf9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [0x4f75f4], eax
jmp 0x466c11
push dword [edx - 0xc]
mov ecx, 0x4f75f4
push edx
call fcn.004044f0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466c2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x4f75f4]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x466c40
sub edx, esi
sar edx, 1
push ecx
lea edx, [edx*2 + 2]
push edx
mov edx, dword [ebp - 0x10]
push eax
push ecx
push 0x4cca1c
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00477830
mov esi, eax
add esp, 0x14
test esi, esi
je 0x466cca
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x466d1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push 0x4cd140
push eax
call fcn.00403ab0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466cca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x466ce9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f75f4]
lea ecx, [ecx - 0x10]
call fcn.00416960
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
int3