Function at 0x422580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448741
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x45a028]
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 ebx, ecx
xor edi, edi
push 0x7e
lea ecx, [ebp - 0x8e]
mov esi, edx
xor eax, eax
push edi
push ecx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xcc], edi
mov word [ebp - 0x90], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
call fcn.00424f40
cmp eax, edi
jne 0x42297a
mov esi, dword [ebx + 0x44]
mov dword [ebp - 0xbc], esi
cmp esi, dword [ebx + 0x48]
je 0x422978
lea ebx, [esi + 0x24]
mov dword [ebp - 0xb8], ebx
lea ebx, [ebx]
cmp dword [ebx - 0x14], edi
je 0x422957
mov edx, dword [ebp - 0xcc]
push edx
lea eax, [ebp - 0x90]
push 0x44fdec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
inc dword [ebp - 0xcc]
add esp, 0xc
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], edi
push 0x40000000
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0x90]
mov dword [ebp - 4], edi
call fcn.00402a20
test eax, eax
jne 0x422933
cmp dword [ebx - 0x10], 8
jb 0x42267d
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x4226aa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0xc8]
push edx
push esi
push 1
push edi
push str.host
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, byte [ebx - 8]
mov eax, dword [ebp - 0xc8]
push 4
lea edx, [ebp - 0xb4]
push edx
push 4
push edi
push str.useSubDomain
push eax
mov dword [ebp - 0xb4], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebx]
mov ebx, dword [eax]
xor esi, esi
cmp ebx, eax
je 0x422910
cmp dword [ebx + 0x1c], edi
je 0x4228c1
push esi
lea ecx, [ebp - 0x90]
push 0x44fdec
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
inc esi
add esp, 0xc
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd4], edi
lea edx, [ebp - 0xe8]
push edx
lea eax, [ebp - 0xb0]
push eax
push edi
push 0x40000000
push edi
push edi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xc8]
push edi
lea ecx, [ebp - 0x90]
push ecx
push edx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x4228b5
cmp dword [ebx + 0x20], 8
mov eax, dword [ebp - 0xb0]
lea esi, [ebx + 0xc]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], edi
jb 0x422772
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x42279f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0xb0]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push edi
push str.page
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebx + 0x28]
cmp edi, dword [ebx + 0x2c]
je 0x422898
jmp 0x4227b0
cmp dword [edi + 0x10], 0
je 0x42288c
xor eax, eax
mov word [ebp - 0xac], ax
push 4
mov eax, 0x44fe7c
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
call fcn.00405f90
push 2
mov eax, 0x44fdec
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00409ba0
cmp dword [ebp - 0x98], 8
mov eax, dword [ebp - 0xac]
jae 0x422814
lea eax, [ebp - 0xac]
mov esi, dword [ebp - 0xb4]
push esi
push eax
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
inc esi
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xb4], esi
jb 0x42283d
mov esi, dword [edi]
jmp 0x42283f
mov esi, edi
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x42286f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xb0]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
lea eax, [ebp - 0x90]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x98], 8
jb 0x42288c
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
add edi, 0x1c
cmp edi, dword [ebx + 0x2c]
jne 0x4227b0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4228b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xdc], 0
xor edi, edi
mov esi, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], edi
cmp byte [ebx + 0x39], 0
jne 0x422902
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x39], 0
jne 0x4228e6
mov eax, dword [ecx]
cmp byte [eax + 0x39], 0
jne 0x4228e2
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x39], 0
je 0x4228d8
mov ebx, ecx
jmp 0x422902
mov eax, dword [ebx + 4]
cmp byte [eax + 0x39], 0
jne 0x422900
nop
cmp ebx, dword [eax + 8]
jne 0x422900
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], 0
je 0x4228f0
mov ebx, eax
mov eax, dword [ebp - 0xb8]
cmp ebx, dword [eax]
jne 0x4226e0
mov eax, dword [ebp - 0xc8]
cmp eax, edi
je 0x422927
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc8], edi
mov esi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
cmp eax, edi
je 0x422951
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
mov ecx, dword [ebp - 0xe0]
add esi, 0x30
add ebx, 0x30
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], ebx
cmp esi, dword [ecx + 0x48]
jne 0x422610
xor eax, eax
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.00441db6
mov esp, ebp
pop ebp
ret