Function at 0x41a850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c010
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x60c9c8]
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.0043e2f8
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a899
push 0x80004005
call fcn.00402a80
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 + 0x158]
push edx
mov dword [ebp - 4], ebx
call fcn.0040ff40
test eax, eax
je 0x41a965
mov eax, dword [esi + 0xe4bc]
mov edi, 1
cmp eax, ebx
je 0x41a913
cmp eax, 2
je 0x41a8df
cmp eax, 3
jne 0x41a965
cmp dword [esi + 4], ebx
jne 0x41a8f1
cmp dword [esi + 8], ebx
jne 0x41a8f1
mov edi, dword [esi + 0xe4c0]
jmp 0x41a903
mov cx, word [esi + 0xe4b8]
cmp cx, word [esi + 0xe4ba]
jne 0x41a903
xor edi, edi
mov edx, dword [esi + 0xe4c4]
cmp dword [edx - 0xc], ebx
jne 0x41a913
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 0x55c8ac
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 0x41a965
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 0x41a992
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 0x41a98b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41ac62
mov eax, dword [esi + 0xe4c4]
sub eax, 0x10
push eax
call fcn.00402f60
add eax, 0x10
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x41aa05
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 0x41a9e8
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x3c]
call fcn.00402e70
lea ecx, [ebp - 0x30]
call fcn.00402e70
xor eax, eax
jmp 0x41ac62
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403770
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test eax, eax
jne 0x41a9c7
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x41aa1a
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402d60
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 0x41aa3e
mov ecx, dword [ebp - 0x38]
push ecx
jmp 0x41a9cb
mov edx, dword [ebp - 0x30]
push str.InstallID
push edx
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c3a0
movzx ecx, word [esi + 0xe4b8]
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.00533b0b
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 0x41aaa0
mov edx, dword [ebp - 0x38]
push edx
jmp 0x41a9cb
mov eax, dword [ebp - 0x30]
push str.Language
push eax
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c3a0
lea ecx, [esi + 0x158]
call fcn.0040ad80
test eax, eax
je 0x41abb2
xor ecx, ecx
cmp eax, 1
sete cl
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x48], ecx
lea ecx, [esi + 0x158]
call fcn.004162a0
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.00405390
mov edx, dword [ebp - 0x38]
push eax
push 1
push 0
push str.RESIDENCE
push edx
call ebx
test eax, eax
je 0x41ab28
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
call fcn.00402e70
jmp 0x41a9d1
mov ecx, dword [ebp - 0x30]
push str.RESIDENCE
push ecx
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c3a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402e70
cmp dword [ebp - 0x48], 0
je 0x41abb2
lea edx, [ebp - 0x34]
push edx
lea ecx, [esi + 0x158]
call fcn.004162d0
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.00405390
mov edx, dword [ebp - 0x38]
push eax
push 1
push 0
push str.AREA
push edx
call ebx
test eax, eax
jne 0x41ab11
mov ecx, dword [ebp - 0x30]
push str.AREA
push ecx
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c3a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402e70
lea edx, [ebp - 0x40]
push edx
lea ecx, [esi + 0x158]
mov dword [ebp - 0x40], 0
call fcn.0040ae00
test eax, eax
je 0x41ac25
cmp dword [ebp - 0x40], 0
je 0x41ac25
cmp dword [esi + 4], 0
mov dword [ebp - 0x34], 1
je 0x41abef
cmp dword [esi + 0xe224], 0
jne 0x41abef
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 0x41aa97
mov eax, dword [ebp - 0x30]
push str.SEND_INFO_AGREE
push eax
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c3a0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x30]
push 0x55e8f0
push 0x55c8ac
push edx
push 0x55fa18
lea ecx, [esi + 0xd9b8]
call fcn.0042c110
lea ecx, [ebp - 0x3c]
call fcn.00402e70
lea ecx, [ebp - 0x30]
call fcn.00402e70
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.00531f97
mov esp, ebp
pop ebp
ret