Function at 0x406bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c76
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x6428
call fcn.004081eb
add esp, 4
mov edi, eax
call fcn.004077c0
push 0x6428
push 0
push edi
call fcn.0040c0a0
add esp, 8
mov edx, edi
mov ecx, 7
call fcn.004078f0
add esp, 4
test eax, eax
jle 0x406c65
push eax
push edi
lea eax, [ebp - 0xb8]
push eax
call fcn.00406af0
lea ecx, [esi + 0x30]
push eax
call fcn.00403320
cmp dword [ebp - 0xa4], 8
jb 0x406c65
push dword [ebp - 0xb8]
call fcn.00408a9d
add esp, 4
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x406c70
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call ebx
push 0x6428
push 0
push edi
call fcn.0040c0a0
add esp, 8
mov edx, edi
xor ecx, ecx
call fcn.004078f0
add esp, 4
test eax, eax
jle 0x406cc7
push eax
push edi
lea eax, [ebp - 0xb8]
push eax
call fcn.00406af0
lea ecx, [esi + 0x48]
push eax
call fcn.00403320
cmp dword [ebp - 0xa4], 8
jb 0x406cc7
push dword [ebp - 0xb8]
call fcn.00408a9d
add esp, 4
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x406cd2
mov eax, dword [eax]
push eax
call ebx
push 0x6428
push 0
push edi
call fcn.0040c0a0
add esp, 8
mov edx, edi
mov ecx, 1
call fcn.004078f0
add esp, 4
test eax, eax
jle 0x406d26
push eax
push edi
lea eax, [ebp - 0xb8]
push eax
call fcn.00406af0
lea ecx, [esi + 0x18]
push eax
call fcn.00403320
cmp dword [ebp - 0xa4], 8
jb 0x406d26
push dword [ebp - 0xb8]
call fcn.00408a9d
add esp, 4
push 0x41fa14
call ebx
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x406d38
mov eax, dword [eax]
push eax
call ebx
push 0x6428
push 0
push edi
call fcn.0040c0a0
add esp, 8
mov edx, edi
mov ecx, 8
call fcn.004078f0
add esp, 4
test eax, eax
jle 0x406d8b
push eax
push edi
lea eax, [ebp - 0xb8]
push eax
call fcn.00406af0
push eax
mov ecx, esi
call fcn.00403320
cmp dword [ebp - 0xa4], 8
jb 0x406d8b
push dword [ebp - 0xb8]
call fcn.00408a9d
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x406d95
mov eax, dword [esi]
jmp 0x406d97
mov eax, esi
push eax
call ebx
mov ecx, dword [0x42535c]
test ecx, ecx
je 0x406db4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x42535c], 0
mov ecx, dword [0x425360]
test ecx, ecx
je 0x406dce
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x425360], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call fcn.00408a9d
add esp, 4
cmp dword [esi + 0x58], 0
jne 0x406ee8
lea eax, [ebp - 0xe8]
push eax
call fcn.00407d40
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x406e04
mov edx, dword [edx]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
cmp byte [edx], 0
jne 0x406e28
xor ecx, ecx
jmp 0x406e39
mov ecx, edx
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e30
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.00401730
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.00407d60
push eax
lea ecx, [esi + 0x48]
call fcn.00403320
cmp dword [ebp - 0xa4], 8
jb 0x406e7b
push dword [ebp - 0xb8]
call fcn.00408a9d
add esp, 4
xor eax, eax
cmp dword [ebp - 0xbc], 0x10
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
jb 0x406eaf
push dword [ebp - 0xd0]
call fcn.00408a9d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd4], 0x10
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
jb 0x406ee8
push dword [ebp - 0xe8]
call fcn.00408a9d
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x406f3b
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
call fcn.00406f60
test eax, eax
je 0x406f2c
cmp word [ebp - 0x40], 0
jne 0x406f10
xor ecx, ecx
push ecx
lea eax, [ebp - 0x40]
push eax
jmp 0x406f33
lea ecx, [ebp - 0x40]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f16
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x40]
push eax
jmp 0x406f33
push 4
push str.null
lea ecx, [esi + 0x18]
call fcn.00403420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082d3
mov esp, ebp
pop ebp
ret