Function at 0x40c6f0
Capabilities:
Get common file path
Get system information on windows
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500c7c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2f8
mov eax, dword [0x5470bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2e0], edi
mov esi, dword [ebx + 8]
push str.CInstallCtrl::Install____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xb
xor eax, eax
mov dword [ebp - 0x2c8], 7
push 0x533060
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
push esi
lea eax, [ebp - 0x2dc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00408660
add esp, 0xc
push 0x532e58
push eax
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 1
push eax
call fcn.00408660
add esp, 0xc
push eax
mov byte [ebp - 4], 2
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov eax, dword [ebp - 0x248]
cmp eax, 8
jb 0x40c7dc
inc eax
lea ecx, [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x24c], 0
cmp eax, 8
jb 0x40c817
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
cmp eax, 8
jb 0x40c859
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp word [esi], 0
jne 0x40c86b
xor ecx, ecx
jmp 0x40c87f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c870
sub ecx, edx
sar ecx, 1
push ecx
add edi, 4
push esi
mov ecx, edi
call fcn.004020c0
cmp dword [edi + 0x14], 8
jb 0x40c895
mov ecx, dword [edi]
jmp 0x40c897
mov ecx, edi
mov eax, dword [edi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x40c8c7
dec eax
cmp dword [edi + 0x10], eax
jae 0x40c8b2
push str.invalid_string_position
call fcn.0041b364
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
jb 0x40c8bf
mov ecx, dword [edi]
jmp 0x40c8c1
mov ecx, edi
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [edi + 0x14], 8
jb 0x40c8d1
mov ecx, dword [edi]
jmp 0x40c8d3
mov ecx, edi
call fcn.00417690
cmp eax, 1
je 0x40c8f9
push 1
push 0x532988
mov ecx, edi
call fcn.004080f0
push 4
push str.ZZDS
mov ecx, eax
call fcn.004080f0
cmp dword [edi + 0x14], 8
jb 0x40c903
mov ecx, dword [edi]
jmp 0x40c905
mov ecx, edi
call fcn.00418220
cmp dword [edi + 0x14], 8
jb 0x40c914
mov ecx, dword [edi]
jmp 0x40c916
mov ecx, edi
mov eax, dword [edi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40c92f
push 1
push 0x532988
mov ecx, edi
call fcn.004080f0
mov esi, dword [ebp - 0x2e0]
mov ecx, esi
push 0
call fcn.0040e830
push 0x208
lea eax, [ebp - 0x220]
mov byte [ebp - 0x2c1], 0
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x264], 7
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x278]
mov ax, word [ebp - 0x220]
mov word [ebp - 0x278], ax
xor eax, eax
push 0xd
push 0x533078
mov dword [ebp - 0x268], 1
mov word [ebp - 0x276], ax
call fcn.004080f0
push 4
xor eax, eax
mov dword [ebp - 0x2c8], 7
push str.ZZDS
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x238]
push 0x532988
push eax
call fcn.00412aa0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.00408220
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x40ca31
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.004024e0
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
cmp eax, 8
jb 0x40ca70
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x278]
cmovae ecx, dword [ebp - 0x278]
call fcn.00418340
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x244]
push eax
movups xmmword [ebp - 0x244], xmm0
movups xmmword [ebp - 0x234], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x244]
cmp ax, 9
je 0x40cac7
cmp ax, 6
je 0x40cac7
xor eax, eax
jmp 0x40cacc
mov eax, 1
test eax, eax
mov dword [ebp - 0x2c8], 7
mov edx, str.zzdsMenu_64.dll
mov dword [ebp - 0x2cc], 0
mov ecx, str.zzdsMenu_32.dll
cmove edx, ecx
xor eax, eax
mov word [ebp - 0x2dc], ax
cmp word [edx], ax
jne 0x40cb01
xor ecx, ecx
jmp 0x40cb23
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2e4], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb10
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2dc]
call fcn.004020c0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0040f4b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c8]
cmp eax, 8
jb 0x40cb64
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
push 0xf
xor eax, eax
mov dword [ebp - 0x2c8], 7
push str.ZZWordAddin.dll
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.0040f4b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c8]
cmp eax, 8
jb 0x40cbc7
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
push 5
xor eax, eax
mov dword [ebp - 0x2c8], 7
push 0x5330f4
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 8
push eax
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c8]
cmp eax, 8
jb 0x40cc2f
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
push 0x1a
xor eax, eax
mov dword [ebp - 0x2c8], 7
push 0x533100
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 9
push eax
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c8]
cmp eax, 8
jb 0x40cc97
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x2e8]
push eax
push 0x84
push str.ZIPRES
push 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2ec], 0
call esi
push eax
call fcn.0040e280
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2ec]
push eax
push 0x83
push 0x532800
push 0
call esi
push eax
call fcn.0040e280
cmp dword [ebp - 0x2e4], 0
mov esi, eax
je 0x40cec8
cmp dword [ebp - 0x2e8], 0
je 0x40cec8
test esi, esi
je 0x40cec8
cmp dword [ebp - 0x2ec], 0
je 0x40cec8
push 0x533138
lea ecx, [ebp - 0x25c]
call fcn.00401f30
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xa
push eax
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 3
call fcn.00401ef0
push 0x48
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea ecx, [ebp - 0x2c0]
push esi
call fcn.00401870
mov esi, dword [ebp - 0x2e0]
sub esp, 0x28
mov ecx, esp
mov byte [ebp - 4], 0xb
push 0x64
mov dword [ecx], vtable.std::_Func_base_void__int_.0
mov dword [ecx], vtable.._AV___Func_impl_V___Binder_U_Unforced_std__P8CInstallCtrl__AEXH_ZQAV3_ABU___Ph__00_2__std__V__allocator_H_2_XH_std__.0
mov dword [ecx + 4], 0x40e810
mov al, byte [ebp - 0x26c]
mov byte [ecx + 8], al
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x24], ecx
lea ecx, [ebp - 0x2c0]
push 0
call fcn.00401990
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
mov byte [ebp - 4], 0xc
cmp dword [edi + 0x14], 8
jb 0x40cdda
mov edi, dword [edi]
lea eax, [ebp - 0x238]
push eax
push edi
push dword [ebp - 0x2e8]
lea ecx, [ebp - 0x2c0]
push dword [ebp - 0x2e4]
call fcn.00401a10
mov byte [ebp - 0x2c1], al
test al, al
jne 0x40ce8c
push ecx
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x25c]
call fcn.00417510
add esp, 4
mov byte [ebp - 4], 0xd
call fcn.004055a0
push 0x533154
lea ecx, [ebp - 0x2dc]
mov dword [eax + 0x12c], 0x5c
call fcn.00401f30
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0xe
push ecx
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00408810
add esp, 0xc
push eax
mov byte [ebp - 4], 0xf
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
lea ecx, [ebp - 0x304]
call fcn.00401ef0
lea ecx, [ebp - 0x2dc]
call fcn.00401ef0
lea ecx, [ebp - 0x25c]
call fcn.00401ef0
lea ecx, [ebp - 0x238]
call fcn.004031b0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call fcn.00401920
cmp byte [ebp - 0x2c1], 0
je 0x40cfee
push 1
mov ecx, esi
call fcn.0040e830
mov ecx, esi
call fcn.0040f340
jmp 0x40cfee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004055a0
push esi
mov dword [eax + 0x12c], 0x5c
lea eax, [ebp - 0x25c]
push eax
call fcn.004045b0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2dc]
push 0x1d
xor eax, eax
mov dword [ebp - 0x2c8], 7
push 0x533178
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
call fcn.004020c0
push esi
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.004087a0
add esp, 0xc
push eax
mov byte [ebp - 4], 0x12
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x40cf6e
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x228], 0
cmp eax, 8
jb 0x40cfa9
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.004024e0
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x2dc], ax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x2c8], 7
mov dword [ebp - 0x2cc], 0
cmp eax, 8
jb 0x40cfe8
inc eax
lea ecx, [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
call fcn.004024e0
mov esi, dword [ebp - 0x2e0]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0x2c1], 0
mov eax, 0x5331c0
mov edx, 0x5331b4
mov dword [ebp - 0x2f0], 7
cmove edx, eax
mov dword [ebp - 0x2f4], 0
xor eax, eax
mov word [ebp - 0x304], ax
cmp word [edx], ax
jne 0x40d02e
xor ecx, ecx
jmp 0x40d042
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d033
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x304]
call fcn.004020c0
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 0x13
push eax
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2f0]
cmp eax, 8
jb 0x40d088
inc eax
lea ecx, [ebp - 0x304]
push eax
push dword [ebp - 0x304]
call fcn.004024e0
mov al, byte [ebp - 0x2c1]
test al, al
jne 0x40d0d4
call fcn.004055a0
mov ecx, eax
call fcn.00404bd0
call fcn.004055a0
mov ecx, eax
call fcn.00405cf0
call fcn.004055a0
mov ecx, eax
call fcn.00406300
call fcn.004055a0
mov ecx, eax
call fcn.004063b0
call fcn.004055a0
mov ecx, eax
call fcn.00406720
mov al, byte [ebp - 0x2c1]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40d0ed
push 0
movzx eax, al
push eax
push 0x403
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x40d10b
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004024e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004264c2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4