Function at 0x40a190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d276
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4290c0]
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.0040cf11
add esp, 4
mov ebx, eax
call fcn.0040ae90
push 0x6428
push 0
push ebx
call fcn.00411ce0
add esp, 8
mov edx, ebx
mov ecx, 7
call fcn.0040afc0
add esp, 4
test eax, eax
jle 0x40a25a
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
call fcn.0040a0b0
lea edi, [esi + 0x30]
mov dword [ebp - 0xa4], eax
cmp edi, eax
je 0x40a243
cmp dword [edi + 0x14], 8
jb 0x40a228
push dword [edi]
call fcn.0040d11a
mov eax, dword [ebp - 0xa4]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.00402c90
cmp dword [ebp - 0xa8], 8
jb 0x40a25a
push dword [ebp - 0xbc]
call fcn.0040d11a
add esp, 4
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x40a265
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x6428
push 0
push ebx
call fcn.00411ce0
add esp, 8
mov edx, ebx
xor ecx, ecx
call fcn.0040afc0
add esp, 4
test eax, eax
jle 0x40a2ef
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
call fcn.0040a0b0
lea edi, [esi + 0x48]
mov dword [ebp - 0xa4], eax
cmp edi, eax
je 0x40a2d8
cmp dword [edi + 0x14], 8
jb 0x40a2bd
push dword [edi]
call fcn.0040d11a
mov eax, dword [ebp - 0xa4]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.00402c90
cmp dword [ebp - 0xa8], 8
jb 0x40a2ef
push dword [ebp - 0xbc]
call fcn.0040d11a
add esp, 4
cmp dword [esi + 0x5c], 8
lea edi, [esi + 0x48]
jb 0x40a2fc
mov eax, dword [edi]
jmp 0x40a2fe
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x6428
push 0
push ebx
call fcn.00411ce0
add esp, 8
mov edx, ebx
mov ecx, 1
call fcn.0040afc0
add esp, 4
test eax, eax
jle 0x40a390
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
call fcn.0040a0b0
mov ecx, eax
lea eax, [esi + 0x18]
mov dword [ebp - 0xa4], ecx
cmp eax, ecx
je 0x40a379
cmp dword [eax + 0x14], 8
jb 0x40a35e
push dword [eax]
call fcn.0040d11a
mov ecx, dword [ebp - 0xa4]
add esp, 4
lea eax, [esi + 0x18]
xor edx, edx
push ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov ecx, eax
mov word [eax], dx
call fcn.00402c90
cmp dword [ebp - 0xa8], 8
jb 0x40a390
push dword [ebp - 0xbc]
call fcn.0040d11a
add esp, 4
push 0x4263cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x40a3a6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x6428
push 0
push ebx
call fcn.00411ce0
add esp, 8
mov edx, ebx
mov ecx, 8
call fcn.0040afc0
add esp, 4
test eax, eax
jle 0x40a430
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
call fcn.0040a0b0
mov dword [ebp - 0xa4], eax
cmp esi, eax
je 0x40a419
cmp dword [esi + 0x14], 8
jb 0x40a3fe
push dword [esi]
call fcn.0040d11a
mov eax, dword [ebp - 0xa4]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
push eax
mov ecx, esi
call fcn.00402c90
cmp dword [ebp - 0xa8], 8
jb 0x40a430
push dword [ebp - 0xbc]
call fcn.0040d11a
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x40a43a
mov eax, dword [esi]
jmp 0x40a43c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x42b728]
test ecx, ecx
je 0x40a45d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x42b728], 0
mov ecx, dword [0x42b72c]
test ecx, ecx
je 0x40a477
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x42b72c], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call fcn.0040d11a
add esp, 4
cmp dword [esi + 0x58], 0
jne 0x40a5b6
lea eax, [ebp - 0xec]
push eax
call fcn.0040b410
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x40a4ad
mov edx, dword [edx]
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
cmp byte [edx], 0
jne 0x40a4d1
xor ecx, ecx
jmp 0x40a4df
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a4d6
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0xd4]
call fcn.00402e90
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.0040b430
mov ebx, eax
cmp edi, ebx
je 0x40a532
cmp dword [edi + 0x14], 8
jb 0x40a517
push dword [edi]
call fcn.0040d11a
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push ebx
mov ecx, edi
mov word [edi], ax
call fcn.00402c90
cmp dword [ebp - 0xa8], 8
jb 0x40a549
push dword [ebp - 0xbc]
call fcn.0040d11a
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc0], 0x10
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
jb 0x40a57d
push dword [ebp - 0xd4]
call fcn.0040d11a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd8], 0x10
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
jb 0x40a5b6
push dword [ebp - 0xec]
call fcn.0040d11a
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x40a609
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
call fcn.0040a630
test eax, eax
je 0x40a5fa
cmp word [ebp - 0x40], 0
jne 0x40a5de
xor ecx, ecx
push ecx
lea eax, [ebp - 0x40]
push eax
jmp 0x40a601
lea ecx, [ebp - 0x40]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5e4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x40]
push eax
jmp 0x40a601
push 4
push str.null
lea ecx, [esi + 0x18]
call fcn.004030c0
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.0040d11f
mov esp, ebp
pop ebp
ret