Function at 0x42f2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5ed80c]
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, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
push 0x48
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], esi
call fcn.0055b782
add esp, 4
cmp eax, esi
je 0x42f562
mov dword [ebp - 0x68], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x68]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x68]
mov al, 1
mov byte [ecx + 0x44], al
mov edx, dword [ebp - 0x68]
mov byte [edx + 0x45], al
lea eax, [ebp - 0x6c]
push eax
push edi
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00426c10
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0042a9c0
mov edx, dword [ebp - 0x68]
push edx
mov byte [ebp - 4], 2
call fcn.0055ae44
add esp, 4
cmp ebx, esi
je 0x42f36b
lea eax, [ebx + 0x10]
jmp 0x42f36d
xor eax, eax
push str.instcancel1
push eax
call fcn.004255f0
add esp, 8
push 2
xor eax, eax
mov edi, 7
push 0x59fd3c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00401c40
xor ecx, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x8c], cx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5e6988
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00407ea0
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004062e0
cmp dword [eax + 0x10], esi
setne byte [ebp - 0x5c]
cmp dword [ebp - 0x34], 8
jb 0x42f402
mov edx, dword [ebp - 0x48]
push edx
call fcn.0055ae44
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
cmp eax, esi
je 0x42f41c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], 8
jb 0x42f431
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0055ae44
add esp, 4
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 2
jb 0x42f447
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0055ae44
add esp, 4
push 0xf
xor eax, eax
push str.InstalledBefore
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00401c40
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5e696c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00407ea0
mov edi, dword [ebp - 0x58]
movzx eax, byte [ebp - 0x5c]
cmp edi, esi
je 0x42f4bf
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x42f49d
lea ecx, [ebp - 0x2c]
push 4
lea edx, [ebp - 0x4c]
push edx
push 4
push esi
push ecx
push edi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jb 0x42f4d9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
push 3
mov word [ebp - 0x2c], cx
push 0x59fd14
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.00401c40
mov byte [ebp - 4], 0xb
cmp ebx, esi
je 0x42f503
lea esi, [ebx + 0x10]
mov edx, dword [ebp - 0x5c]
push edx
push 0x3d
lea eax, [ebp - 0x2c]
push eax
push 0x26
push esi
call fcn.00424430
add esp, 8
push eax
call fcn.00425350
add esp, 8
push eax
call fcn.00424430
add esp, 8
mov ecx, eax
call fcn.00425cb0
cmp dword [ebp - 0x18], edi
jb 0x42f542
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0055ae44
add esp, 4
mov eax, ebx
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.0055bc32
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x4c], esi
call fcn.0055b5ba
push 0x5cc520
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], vtable.std::bad_alloc.0
call fcn.0055b802
int3