Function at 0x46f940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccbbd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fa0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x50f8e0]
test al, 1
jne 0x46f9a7
or eax, 1
mov dword [0x50f8e0], eax
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x46fb59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4d0c40
mov dword [0x50f8e4], eax
call fcn.0049a7bf
add esp, 4
mov eax, dword [0x50f8e4]
cmp dword [eax - 0xc], 0
jne 0x46fb2f
mov esi, dword [0x50f3cc]
test esi, esi
je 0x46f9ca
lock inc dword [esi + 4]
mov esi, dword [0x50f3cc]
mov ecx, dword [0x50f3c8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x46fa10
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46fa10
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46fa10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x4e3bd4
push dword [ebp - 0x10]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.0047b260
add esp, 8
push eax
mov ecx, 0x50f8e4
mov byte [ebp - 4], 3
call fcn.00403150
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 0x46fa55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x50f8e4]
cmp dword [eax - 0xc], 0
jne 0x46fb10
lea ecx, [ebp - 0x14]
call fcn.0047c350
push eax
mov ecx, 0x50f8e4
mov byte [ebp - 4], 4
call fcn.00403150
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 0x46fa99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
push ecx
push dword [0x50f8e4]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push 0x4e3bd4
call fcn.0047b590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46fb10
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x46fb63
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 0x4e4d34
push eax
call fcn.00420260
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 0x46fb10
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 0x46fb2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x50f8e4]
add eax, 0xfffffff0
push eax
call fcn.00404440
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
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.00404ae0
push 0x80004005
call fcn.00404ae0
int3