Function at 0x406920
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x28
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
lea ebp, [eax + 0x10]
push 0x801e
mov dword [esp + 0x18], ebp
call fcn.00414290
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x406965
lea eax, [esp + 0x14]
push eax
mov eax, 0x801e
call fcn.0040d020
mov ebp, dword [esp + 0x14]
cmp byte [esp + 0x40], 0
je 0x406b39
push 0x88
call fcn.0041cd22
add esp, 4
test eax, eax
je 0x406a1d
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 0x4069a2
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 + 0x48]
mov edi, esi
call fcn.0040c920
test eax, eax
jne 0x406a21
push 0x4349cc
call ebp
push 0x4349e0
call ebp
mov eax, dword [esp + 0x3c]
push eax
call ebp
push 0x434388
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a13
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, 0x28
ret 0xc
xor esi, esi
jmp 0x4069a2
mov ecx, dword [esp + 0x3c]
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 0x406a76
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 + 0x50], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
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 0x406afe
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x406ae6
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x28]
call fcn.0041c0f0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x434a0c
call ebp
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
push ecx
push edx
mov edx, dword [eax + 0xd0]
mov ecx, esi
push ecx
push ebx
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call esi
jmp 0x406af6
push 0x434a30
call ebp
mov edx, dword [ebx]
mov eax, dword [edx + 0x3c]
push esi
push ebx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.0041ce04
add esp, 8
test eax, eax
jl 0x406bca
cmp eax, dword [ebp - 8]
jg 0x406bca
mov dword [ebp - 0xc], eax
xor edx, edx
mov word [ebp + eax*2], dx
lea eax, [esp + 0x14]
push eax
call fcn.0040a140
jmp 0x4069f3
mov esi, dword [ebx + 0x15c]
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x406b5e
push esi
lea eax, [ebx + 0x10c]
push eax
mov ecx, ebp
call fcn.0040bb00
mov ecx, dword [ebx + 0x15c]
mov edx, ebx
call fcn.00406520
mov ebx, eax
test ebx, ebx
je 0x406b02
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x28]
call fcn.0041c0f0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebx]
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
push edx
push eax
mov eax, dword [ecx + 0xd0]
mov edx, esi
push edx
push ebx
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
jmp 0x406b02
push 0x80070057
call fcn.00401730
int3