Function at 0x1002ae10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x74], edx
jb 0x1002ae4a
mov eax, dword [ebx]
jmp 0x1002ae4c
mov eax, ebx
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.host
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002b073
mov edi, dword [ebx + 0x1c]
cmp edi, dword [ebx + 0x20]
je 0x1002af62
xor edx, edx
push 0xd
mov eax, str.sourceReplace
lea esi, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], dx
call fcn.1000cf60
mov dword [ebp - 4], 0
mov ecx, edi
sub ecx, dword [ebx + 0x1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor eax, eax
push 0xa
lea edx, [ebp - 0x38]
push edx
push ecx
mov word [ebp - 0x38], ax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
call dword [sym.imp.MSVCR100.dll__itow]
lea eax, [ebp - 0x38]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1002aee4
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.10011b20
mov ecx, dword [edi + 0x10]
mov edx, 8
cmp dword [edi + 0x14], edx
jb 0x1002af10
mov eax, dword [edi]
jmp 0x1002af12
mov eax, edi
cmp dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x70]
jae 0x1002af1d
lea edx, [ebp - 0x70]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push edx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x1002b00c
cmp dword [ebp - 0x5c], 8
jb 0x1002af56
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
add edi, 0x1c
cmp edi, dword [ebx + 0x20]
jne 0x1002ae76
mov edi, dword [ebx + 0x2c]
cmp edi, dword [ebx + 0x30]
je 0x1002b071
xor edx, edx
push 0xa
mov eax, str.sourceNone
lea esi, [ebp - 0x54]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], dx
call fcn.1000cf60
mov dword [ebp - 4], 1
mov ecx, edi
sub ecx, dword [ebx + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor eax, eax
push 0xa
lea edx, [ebp - 0x24]
push edx
push ecx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call dword [sym.imp.MSVCR100.dll__itow]
lea eax, [ebp - 0x24]
add esp, 0xc
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1002afe0
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x54]
call fcn.10011b20
mov ecx, dword [edi + 0x10]
mov edx, 8
cmp dword [edi + 0x14], edx
jb 0x1002b023
mov eax, dword [edi]
jmp 0x1002b025
cmp dword [ebp - 0x5c], 8
jb 0x1002b01f
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x1002b073
mov eax, edi
cmp dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x54]
jae 0x1002b030
lea edx, [ebp - 0x54]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push edx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x1002b08e
cmp dword [ebp - 0x40], 8
jb 0x1002b065
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
add edi, 0x1c
cmp edi, dword [ebx + 0x30]
jne 0x1002af6e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x40], 8
jb 0x1002b01f
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x1002b073