Function at 0x417810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545f00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5ec938]
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 esi, ecx
call fcn.00436219
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417859
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 - 0x30], eax
lea edx, [ebp - 0x30]
lea ecx, [esi + 0x148]
push edx
mov dword [ebp - 4], ebx
call fcn.0040d5b0
test eax, eax
je 0x417925
mov eax, dword [esi + 0xe894]
mov edi, 1
cmp eax, ebx
je 0x4178d3
cmp eax, 2
je 0x41789f
cmp eax, 3
jne 0x417925
cmp dword [esi + 4], ebx
jne 0x4178b1
cmp dword [esi + 8], ebx
jne 0x4178b1
mov edi, dword [esi + 0xe89c]
jmp 0x4178c3
mov cx, word [esi + 0xe890]
cmp cx, word [esi + 0xe892]
jne 0x4178c3
xor edi, edi
mov edx, dword [esi + 0xe8a0]
cmp dword [edx - 0xc], ebx
jne 0x4178d3
mov edi, 1
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0x20006
push ebx
push 0x556794
push ebx
push edx
push 0x80000002
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417925
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x417952
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
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 0x41794b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x417c22
mov eax, dword [esi + 0xe8a0]
sub eax, 0x10
push eax
call fcn.004023a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4179c5
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x4179a8
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x3c]
call fcn.00402480
lea ecx, [ebp - 0x30]
call fcn.00402480
xor eax, eax
jmp 0x417c22
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402bd0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test eax, eax
jne 0x417987
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4179da
push edi
lea ecx, [ebp - 0x3c]
call fcn.004021c0
mov eax, dword [ebp - 0x3c]
lea edx, [edi + edi + 2]
push edx
push eax
mov eax, dword [ebp - 0x38]
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.InstallID
push eax
call ebx
test eax, eax
je 0x4179fe
mov ecx, dword [ebp - 0x38]
push ecx
jmp 0x41798b
mov edx, dword [ebp - 0x30]
push str.InstallID
push edx
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426800
movzx ecx, word [esi + 0xe890]
push ecx
push str._04x
xor eax, eax
lea edx, [ebp - 0x1c]
push 5
push edx
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.0052d99b
mov ecx, dword [ebp - 0x38]
add esp, 0x10
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.Language
push ecx
call ebx
test eax, eax
je 0x417a60
mov edx, dword [ebp - 0x38]
push edx
jmp 0x41798b
mov eax, dword [ebp - 0x30]
push str.Language
push eax
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426800
lea ecx, [esi + 0x148]
call fcn.00408f60
test eax, eax
je 0x417b72
xor ecx, ecx
cmp eax, 1
sete cl
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x48], ecx
lea ecx, [esi + 0x148]
call fcn.00413d90
mov eax, dword [ebp - 0x34]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004047e0
mov edx, dword [ebp - 0x38]
push eax
push 1
push 0
push str.RESIDENCE
push edx
call ebx
test eax, eax
je 0x417ae8
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
call fcn.00402480
jmp 0x417991
mov ecx, dword [ebp - 0x30]
push str.RESIDENCE
push ecx
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426800
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402480
cmp dword [ebp - 0x48], 0
je 0x417b72
lea edx, [ebp - 0x34]
push edx
lea ecx, [esi + 0x148]
call fcn.00413dc0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004047e0
mov edx, dword [ebp - 0x38]
push eax
push 1
push 0
push str.AREA
push edx
call ebx
test eax, eax
jne 0x417ad1
mov ecx, dword [ebp - 0x30]
push str.AREA
push ecx
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426800
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402480
lea edx, [ebp - 0x40]
push edx
lea ecx, [esi + 0x148]
mov dword [ebp - 0x40], 0
call fcn.00408fe0
test eax, eax
je 0x417be5
cmp dword [ebp - 0x40], 0
je 0x417be5
cmp dword [esi + 4], 0
mov dword [ebp - 0x34], 1
je 0x417baf
cmp dword [esi + 0xe608], 0
jne 0x417baf
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0
push str.SEND_INFO_AGREE
push ecx
call ebx
test eax, eax
jne 0x417a57
mov eax, dword [ebp - 0x30]
push str.SEND_INFO_AGREE
push eax
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426800
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x30]
push 0x557ee8
push 0x556794
push edx
push 0x558d40
lea ecx, [esi + 0xdd9c]
call fcn.00426640
lea ecx, [ebp - 0x3c]
call fcn.00402480
lea ecx, [ebp - 0x30]
call fcn.00402480
mov eax, 1
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.0052c2ec
mov esp, ebp
pop ebp
ret