Function at 0x40c910
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x44a860
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x466910]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x214]
xor ebx, ebx
push 0x206
mov edi, ecx
mov dword [ebp - 0x20], ebx
lea edx, [ebp + 2]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov dword [ebp - 0x24], eax
mov word [ebp], cx
call fcn.00437170
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004014b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40c9be
push esi
lea ecx, [ebp - 0x18]
call fcn.00401720
mov edx, dword [ebp - 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00434b93
add esp, 8
cmp esi, ebx
jl 0x40cde9
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax - 8]
jg 0x40cde9
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jl 0x40ca13
push str.msiexec.exe
push eax
call fcn.0043343c
add esp, 8
cmp eax, ebx
je 0x40ca13
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40ccae
call fcn.004163a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ca2d
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp]
mov byte [ebp - 4], 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ca46
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004017f0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
jl 0x40cb95
push str.Tools_
push esi
call fcn.0043343c
add esp, 8
cmp eax, ebx
je 0x40cb95
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40cb95
push 0x5c
push esi
call fcn.00433908
add esp, 8
cmp eax, ebx
jne 0x40caa5
or eax, 0xffffffff
jmp 0x40caa9
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ba90
mov bl, 3
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
push 0x5c
push eax
call fcn.00433908
add esp, 8
test eax, eax
jne 0x40cad2
or eax, 0xffffffff
jmp 0x40cad7
sub eax, dword [ebp - 0x1c]
sar eax, 1
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ba90
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404340
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x24]
push 0x455740
lea ecx, [ebp - 0x1c]
push ecx
push edi
call fcn.00404b30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40ce24
push 0x5c
push esi
call fcn.00433908
add esp, 8
cmp eax, ebx
je 0x40cbad
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40cc0c
mov edi, dword [ebp - 0x24]
push 0x455740
lea ecx, [ebp - 0x14]
push ecx
push edi
call fcn.00404b30
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cbe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40ce24
push eax
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004041d0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00404340
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cc4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x24]
push 0x455740
lea ecx, [ebp - 0x14]
push ecx
push esi
call fcn.00404b30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cc82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ce22
call fcn.004163a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ccc8
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
mov bl, 6
push edx
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0040df90
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00404340
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x458098
call esi
push 0x458098
call esi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push 0x458140
push edx
call fcn.004066e0
add esp, 0xc
lea ecx, [ebp]
push ecx
push eax
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 8
call fcn.00404b30
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x458098
call esi
push 0x458098
call esi
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
push esi
call fcn.00404770
mov edi, dword [ebp - 0x24]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb6b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40cb6b
push 0x80070057
call fcn.004017a0
push 1
push 0
push 0
push str.Exception_caught_in_CProductInfo::GetInstallPath
call fcn.00404830
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40ce13
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004331c4
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 4