Function at 0x4078a0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444168
mov eax, dword fs:[0]
push eax
sub esp, 0x8cc
mov eax, dword [0x467060]
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 edi, ecx
mov dword [ebp - 0x8b0], edi
cmp dword [edx + 0x14], 8
jb 0x4078de
mov edx, dword [edx]
push edx
lea ecx, [ebp - 0x840]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
push 0x44aca8
push 0x44b720
lea ecx, [ebp - 0x840]
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
xor eax, eax
push 0x40e
push eax
mov dword [ebp - 0x8d4], eax
mov dword [ebp - 0x890], eax
mov dword [ebp - 0x88c], eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
mov byte [ebp - 0x891], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push edi
lea ecx, [ebp - 0x888]
call fcn.0040d300
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x874], 8
lea eax, [ebp - 0x888]
cmovae eax, dword [ebp - 0x888]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x208
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x840]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov edx, eax
cmp word [edx], 0
jne 0x4079a3
xor ecx, ecx
jmp 0x4079bf
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4079b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079b0
sub ecx, esi
sar ecx, 1
lea eax, [edi + 0x90]
push ecx
push edx
mov ecx, eax
mov dword [ebp - 0x8d0], eax
call fcn.00405570
push 0
lea ecx, [ebp - 0x840]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x8b4], 7
mov dword [ebp - 0x8b8], 0
mov word [ebp - 0x8c8], ax
cmp word [edx], ax
jne 0x407a0a
xor ecx, ecx
jmp 0x407a1f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c8]
call fcn.00405570
push 0x44b974
lea edx, [ebp - 0x8c8]
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 2
call fcn.0041fa60
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
add edi, 0x30
add esp, 4
cmp edi, ebx
je 0x407a80
cmp dword [edi + 0x14], 8
jb 0x407a65
push dword [edi]
call esi
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.004053a0
cmp dword [ebp - 0x898], 8
jb 0x407a94
push dword [ebp - 0x8ac]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x8b4], 8
mov dword [ebp - 0x898], 7
mov dword [ebp - 0x89c], 0
mov word [ebp - 0x8ac], ax
jb 0x407ac9
push dword [ebp - 0x8c8]
call esi
add esp, 4
mov ebx, dword [ebp - 0x8b0]
lea ecx, [ebx + 0x78]
cmp ecx, edi
je 0x407ae0
push 0xffffffffffffffff
push 0
push edi
call fcn.00405a00
call fcn.0041ff50
test al, al
je 0x407b65
push ebx
mov edx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x8ac]
call fcn.0040d300
mov ebx, eax
lea eax, [ebp - 0x888]
add esp, 4
cmp eax, ebx
je 0x407b46
cmp dword [ebp - 0x874], 8
jb 0x407b1d
push dword [ebp - 0x888]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x874], 7
mov dword [ebp - 0x878], 0
mov word [ebp - 0x888], ax
call fcn.004053a0
cmp dword [ebp - 0x898], 8
jb 0x407b5a
push dword [ebp - 0x8ac]
call esi
add esp, 4
mov eax, 0x200
mov dword [ebp - 0x8d4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x840]
push str.main
push 0
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f0c]
add esp, 0xc
test al, 1
jne 0x407be0
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push 0x14
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00432c10
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x83c], 0
movq qword [ebp - 0x838], xmm0
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
cmp word [ebp - 0x218], ax
jne 0x407c34
xor ecx, ecx
jmp 0x407c4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x858]
call fcn.00405570
mov byte [ebp - 4], 3
cmp dword [ebp - 0x848], 0
je 0x40814e
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0x858]
mov byte [ebp - 4], 4
call fcn.0040d0b0
push eax
mov dword [ebp - 0x8cc], eax
push 0
lea eax, [ebp - 0x8ac]
push eax
lea ecx, [ebp - 0x858]
call fcn.00403de0
mov ebx, eax
lea eax, [ebp - 0x870]
cmp eax, ebx
je 0x407d0b
cmp dword [ebp - 0x85c], 8
jb 0x407ce2
push dword [ebp - 0x870]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
call fcn.004053a0
cmp dword [ebp - 0x898], 8
jb 0x407d1f
push dword [ebp - 0x8ac]
call esi
add esp, 4
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x870]
cmovae edx, dword [ebp - 0x870]
xor eax, eax
mov dword [ebp - 0x8b4], 7
mov dword [ebp - 0x8b8], 0
mov word [ebp - 0x8c8], ax
cmp word [edx], ax
jne 0x407d59
xor ecx, ecx
jmp 0x407d6f
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d60
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c8]
call fcn.00405570
push ecx
lea edx, [ebp - 0x8c8]
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 5
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x407d9d
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0x898], 0x10
mov dword [ebp - 0x83c], eax
jb 0x407dc1
push dword [ebp - 0x8ac]
call esi
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8b4], 8
mov dword [ebp - 0x898], 0xf
mov dword [ebp - 0x89c], 0
mov byte [ebp - 0x8ac], 0
jb 0x407df4
push dword [ebp - 0x8c8]
call esi
add esp, 4
push dword [ebp - 0x848]
mov eax, dword [ebp - 0x8cc]
inc eax
push eax
lea eax, [ebp - 0x8ac]
push eax
lea ecx, [ebp - 0x858]
call fcn.00403de0
mov ebx, eax
lea eax, [ebp - 0x858]
cmp eax, ebx
je 0x407e5d
cmp dword [ebp - 0x844], 8
jb 0x407e34
push dword [ebp - 0x858]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
call fcn.004053a0
cmp dword [ebp - 0x898], 8
jb 0x407e71
push dword [ebp - 0x8ac]
call esi
add esp, 4
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0x858]
call fcn.0040d0b0
push eax
mov dword [ebp - 0x8cc], eax
push 0
lea eax, [ebp - 0x8ac]
push eax
lea ecx, [ebp - 0x858]
call fcn.00403de0
mov ebx, eax
lea eax, [ebp - 0x870]
cmp eax, ebx
je 0x407ee8
cmp dword [ebp - 0x85c], 8
jb 0x407ebf
push dword [ebp - 0x870]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
call fcn.004053a0
cmp dword [ebp - 0x898], 8
jb 0x407efc
push dword [ebp - 0x8ac]
call esi
add esp, 4
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x870]
cmovae edx, dword [ebp - 0x870]
xor eax, eax
mov dword [ebp - 0x8b4], 7
mov dword [ebp - 0x8b8], 0
mov word [ebp - 0x8c8], ax
cmp word [edx], ax
jne 0x407f36
xor ecx, ecx
jmp 0x407f4f
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x407f40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c8]
call fcn.00405570
push ecx
lea edx, [ebp - 0x8c8]
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 6
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x407f7d
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0x898], 0x10
mov dword [ebp - 0x838], eax
jb 0x407fa1
push dword [ebp - 0x8ac]
call esi
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8b4], 8
mov dword [ebp - 0x898], 0xf
mov dword [ebp - 0x89c], 0
mov byte [ebp - 0x8ac], 0
jb 0x407fd4
push dword [ebp - 0x8c8]
call esi
add esp, 4
push dword [ebp - 0x848]
mov eax, dword [ebp - 0x8cc]
inc eax
push eax
lea eax, [ebp - 0x8ac]
push eax
lea ecx, [ebp - 0x858]
call fcn.00403de0
mov ebx, eax
lea eax, [ebp - 0x858]
cmp eax, ebx
je 0x40803d
cmp dword [ebp - 0x844], 8
jb 0x408014
push dword [ebp - 0x858]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
call fcn.004053a0
cmp dword [ebp - 0x898], 8
jb 0x408051
push dword [ebp - 0x8ac]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x858]
push eax
lea ecx, [ebp - 0x870]
call fcn.00405a00
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x870]
cmovae edx, dword [ebp - 0x870]
xor eax, eax
mov dword [ebp - 0x8b4], 7
mov dword [ebp - 0x8b8], 0
mov word [ebp - 0x8c8], ax
cmp word [edx], ax
jne 0x4080a1
xor ecx, ecx
jmp 0x4080b5
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4080a6
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c8]
call fcn.00405570
push ecx
lea edx, [ebp - 0x8c8]
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 7
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4080e3
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0x898], 0x10
mov dword [ebp - 0x834], eax
jb 0x408107
push dword [ebp - 0x8ac]
call esi
add esp, 4
cmp dword [ebp - 0x8b4], 8
mov dword [ebp - 0x898], 0xf
mov dword [ebp - 0x89c], 0
mov byte [ebp - 0x8ac], 0
jb 0x408136
push dword [ebp - 0x8c8]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x85c], 8
jb 0x40814e
push dword [ebp - 0x870]
call esi
add esp, 4
cmp dword [ebp - 0x874], 8
lea ecx, [ebp - 0x88c]
push ecx
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp - 0x8d4]
push 0
lea eax, [ebp - 0x888]
cmovae eax, dword [ebp - 0x888]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4083cf
mov ecx, dword [ebp - 0x8b0]
add ecx, 0x18
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x4081ad
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x44ba18
push dword [ebp - 0x890]
call ebx
cmp dword [edi + 0x14], 8
jb 0x4081d7
mov ecx, dword [edi]
jmp 0x4081d9
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4081e0
sub ecx, edx
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x4081f7
mov edi, dword [edi]
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x890]
call ebx
mov edx, dword [ebp - 0x8b0]
add edx, 0x60
cmp dword [edx + 0x14], 8
jb 0x408220
mov ecx, dword [edx]
jmp 0x408222
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408225
sub ecx, edi
sar ecx, 1
cmp dword [edx + 0x14], 8
jb 0x40823c
mov edx, dword [edx]
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.publisher
push dword [ebp - 0x890]
call ebx
mov edi, dword [ebp - 0x8b0]
add edi, 0x78
cmp dword [edi + 0x14], 8
jb 0x408265
mov ecx, dword [edi]
jmp 0x408267
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408270
sub ecx, edx
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x408287
mov edi, dword [edi]
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.UninstallString
push dword [ebp - 0x890]
call ebx
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push str.VersionMajor
push dword [ebp - 0x890]
call ebx
push 4
lea eax, [ebp - 0x838]
push eax
push 4
push 0
push str.VersionMinor
push dword [ebp - 0x890]
call ebx
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push str.MajorVersion
push dword [ebp - 0x890]
call ebx
push 4
lea eax, [ebp - 0x838]
push eax
push 4
push 0
push str.MinorVersion
push dword [ebp - 0x890]
call ebx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408310
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x44baec
push dword [ebp - 0x890]
call ebx
mov edi, dword [ebp - 0x8d0]
cmp dword [edi + 0x14], 8
jb 0x40834b
mov ecx, dword [edi]
jmp 0x40834d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408350
sub ecx, edx
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x408367
mov edi, dword [edi]
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x890]
call ebx
mov eax, dword [0x469f34]
test eax, eax
jne 0x4083b2
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x8d0], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4083ab
mov ecx, eax
call fcn.0040dc50
jmp 0x4083ad
xor eax, eax
mov dword [0x469f34], eax
push 4
add eax, 0xa8
push eax
push 4
push 0
push str.Language
push dword [ebp - 0x890]
call ebx
mov bl, 1
jmp 0x4083d5
mov bl, byte [ebp - 0x891]
mov eax, dword [ebp - 0x890]
test eax, eax
je 0x4083e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x844], 8
jb 0x4083fa
push dword [ebp - 0x858]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x874], 8
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jb 0x40842b
push dword [ebp - 0x888]
call esi
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x874], 7
mov dword [ebp - 0x878], 0
mov word [ebp - 0x888], ax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov al, bl
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.004413e6
mov esp, ebp
pop ebp
ret