Function at 0x40f120
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x577ee8
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor edi, edi
lea ebx, [esp + 0x38]
call fcn.00407850
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.installconfig.dat
mov dword [esp + 0xd0], edi
call fcn.00404150
add esp, 8
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
lea ebx, [esp + 0x18]
call fcn.00407850
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, str.kuninstall.exe
mov byte [esp + 0xd0], 3
call fcn.00404150
add esp, 8
mov byte [esp + 0xc8], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x18]
mov byte [esp + 0xc8], 6
call fcn.0040e860
mov edi, dword [eax]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp eax, ebx
je 0x40f222
push eax
call ebp
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f24a
mov esi, 1
mov eax, dword [esp + 0x18]
cmp esi, ebx
sete byte [esp + 0x1f]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1f], bl
je 0x40f2e0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f282
push eax
call ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40f577
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xcc], 7
call fcn.0043b8c0
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xc8], 8
call fcn.00410040
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x28]
mov byte [esp + 0xc8], 9
call fcn.0040ffc0
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
call fcn.00439120
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
add esp, 4
test esi, esi
je 0x40f41d
push esi
push 0x5c4400
lea edi, [esp + 0x20]
call fcn.00402990
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
push eax
lea edi, [esp + 0x40]
call fcn.00439740
test eax, eax
je 0x40f41d
lea ecx, [esp + 0x28]
push ecx
sub esp, 0x7c
mov dword [esp + 0xb4], esp
mov esi, esp
mov edx, edi
push edx
push esi
call fcn.0043b950
mov eax, dword [esp + 0x134]
mov dword [esi + 0x78], eax
call fcn.0040edd0
add esp, 0x80
test al, al
je 0x40f41d
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [ecx]
cmp esi, eax
je 0x40f417
cmp dword [esp + 0x14], 0
mov edi, dword [esi + 0xc]
je 0x40f407
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f3e3
sub eax, edx
mov edx, dword [esi + 8]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
push edi
push 1
push 0
push edx
push eax
call ebx
cmp esi, dword [esp + 0x2c]
jne 0x40f40f
call ebp
mov esi, dword [esi]
mov eax, dword [esp + 0x2c]
jmp 0x40f3d0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40f455
mov edx, dword [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f430
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
push 1
push 0
push str.UninstallString
push edi
call ebx
test eax, eax
je 0x40f4be
lea ebx, [esp + 0x28]
call fcn.0040ffc0
mov edx, dword [esp + 0x2c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
xor esi, esi
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], esi
mov byte [esp + 0xc8], 7
call fcn.0040e780
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40f4b5
push eax
call ebp
mov dword [esp + 0x14], esi
jmp 0x40f286
lea ebx, [esp + 0x28]
call fcn.0040ffc0
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
xor esi, esi
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], esi
mov byte [esp + 0xc8], 7
call fcn.0040e780
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f513
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40f51e
push eax
call ebp
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x14], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f54a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044e502
add esp, 0xb8
ret