Function at 0x414500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5459b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ec938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
lea ecx, [esi + 0x148]
mov dword [ebp - 0x1c], ebx
call fcn.00408fe0
test eax, eax
je 0x4145a7
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41455c
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x148]
mov dword [ebp - 4], ebx
call fcn.0040d5b0
test eax, eax
jne 0x4145bb
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4145a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], ebx
mov edi, 1
cmp eax, 5
ja 0x4145d2
jne 0x4145e3
cmp dword [esi + 0x18], edi
jb 0x4145e3
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, 0x20006
cmp dword [ebp - 0x18], ebx
je 0x4145f2
mov eax, 0x20106
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push ebx
push 0x556794
push ebx
push edx
push 0x80000001
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41463b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41459b
cmp dword [ebp - 0x1c], ebx
je 0x4146ae
mov dword [ebp - 0x20], edi
cmp dword [esi + 4], ebx
je 0x414653
cmp dword [esi + 0xe608], ebx
jne 0x414653
mov dword [ebp - 0x20], ebx
mov edx, dword [ebp - 0x14]
push 4
lea ecx, [ebp - 0x20]
push ecx
push 4
push ebx
push str.SEND_INFO_AGREE
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x414695
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00402480
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push str.SEND_INFO_AGREE
push ecx
push 0x5591f4
lea ecx, [esi + 0xdd9c]
call fcn.00426800
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push 0x557ee8
push 0x556794
push eax
push 0x5591f4
lea ecx, [esi + 0xdd9c]
call fcn.00426640
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret