Function at 0x4066e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebx, eax
mov eax, dword [0x43d4c4]
mov edx, dword [eax + 0xc]
push esi
push edi
mov ecx, 0x43d4c4
call edx
add eax, 0x10
push 0x801e
mov dword [esp + 0x14], eax
call fcn.00414290
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x406721
lea eax, [esp + 0x10]
push eax
mov eax, 0x801e
call fcn.0040d020
push 0x88
call fcn.0041cd22
add esp, 4
test eax, eax
je 0x4067bd
mov edx, dword [ebx + 4]
lea ecx, [ebx + 0x10c]
push ecx
push edx
mov esi, eax
call fcn.004039e0
mov esi, eax
test esi, esi
je 0x406753
call fcn.004065b0
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4349bc
call ebp
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0x43b534
mov eax, dword [ebx + 0x110]
push eax
mov eax, dword [esp + 0x5c]
mov edi, esi
call fcn.0040c920
test eax, eax
jne 0x4067c1
push 0x4349cc
call ebp
push 0x4349e0
call ebp
mov eax, dword [esp + 0x50]
push eax
call ebp
push 0x434388
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x406903
xor esi, esi
jmp 0x406753
mov ecx, dword [esp + 0x50]
mov edx, dword [ebx + 0x224]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406816
mov edx, dword [ebx + 0x130]
mov ecx, dword [esi + 4]
push 0
push 0
lea edi, [ebx + 0x10c]
push 0x1304
push edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040f470
mov ecx, dword [ebx + 0x15c]
mov edx, ebx
call fcn.00406520
mov ebx, eax
test ebx, ebx
je 0x4068ef
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov edi, dword [esp + 0x50]
lea esi, [esp + 0x38]
call fcn.0041c0f0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x43d4c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d4c4
call edx
add eax, 0x10
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
push eax
push str.Referer:__s_r_n
lea edi, [esp + 0x58]
call fcn.00413d60
mov edi, dword [esp + 0x58]
add esp, 8
lea esi, [esp + 0x28]
call fcn.0041c0f0
cmp dword [esp + 0x54], 0
je 0x4068b0
push 0x434a0c
call ebp
mov ecx, dword [ebx]
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
mov edx, eax
push edx
push eax
mov eax, dword [ecx + 0xd0]
lea edx, [esp + 0x48]
push edx
push ebx
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x28]
push ecx
call esi
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x38]
push edx
call esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40690f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8