Function at 0x10030ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f8e1
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x10067068]
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.1002aaf0
cmp eax, edi
jne 0x100312b1
mov esi, dword [ebx + 0x44]
mov dword [ebp - 0xbc], esi
cmp esi, dword [ebx + 0x48]
je 0x100312af
lea ebx, [esi + 0x24]
mov dword [ebp - 0xb8], ebx
lea ebx, [ebx]
cmp dword [ebx - 0x14], edi
je 0x1003128e
mov edx, dword [ebp - 0xcc]
push edx
lea eax, [ebp - 0x90]
push 0x1005995c
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.10004c30
test eax, eax
jne 0x1003126a
cmp dword [ebx - 0x10], 8
jb 0x10030fbd
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x10030fea
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 0x10031247
cmp dword [ebx + 0x1c], edi
je 0x100311f9
push esi
lea ecx, [ebp - 0x90]
push 0x1005995c
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 0x100311ed
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 0x100310b2
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x100310df
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 0x100311d0
jmp 0x100310f0
cmp dword [edi + 0x10], 0
je 0x100311c4
xor eax, eax
mov word [ebp - 0xac], ax
push 4
mov eax, str.rule
lea esi, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
call fcn.1000cf60
push 2
mov eax, 0x1005995c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10011b20
cmp dword [ebp - 0x98], 8
mov eax, dword [ebp - 0xac]
jae 0x1003114c
mov eax, esi
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 0x10031175
mov esi, dword [edi]
jmp 0x10031177
mov esi, edi
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x100311a7
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 0x100311c4
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
add edi, 0x1c
cmp edi, dword [ebx + 0x2c]
jne 0x100310f0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x100311eb
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 0x10031239
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x39], 0
jne 0x1003121e
mov eax, dword [ecx]
cmp byte [eax + 0x39], 0
jne 0x1003121a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x39], 0
je 0x10031210
mov ebx, ecx
jmp 0x10031239
mov eax, dword [ebx + 4]
cmp byte [eax + 0x39], 0
jne 0x10031237
cmp ebx, dword [eax + 8]
jne 0x10031237
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], 0
je 0x10031227
mov ebx, eax
mov eax, dword [ebp - 0xb8]
cmp ebx, dword [eax]
jne 0x10031020
mov eax, dword [ebp - 0xc8]
cmp eax, edi
je 0x1003125e
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 0x10031288
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 0x10030f50
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.10048188
mov esp, ebp
pop ebp
ret