Function at 0x10026860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b450
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10063068]
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 0x1002689a
mov eax, dword [ebx]
jmp 0x1002689c
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 0x10026ac3
mov edi, dword [ebx + 0x1c]
cmp edi, dword [ebx + 0x20]
je 0x100269b2
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.1000a770
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 0x10026934
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.1000a640
mov ecx, dword [edi + 0x10]
mov edx, 8
cmp dword [edi + 0x14], edx
jb 0x10026960
mov eax, dword [edi]
jmp 0x10026962
mov eax, edi
cmp dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x70]
jae 0x1002696d
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 0x10026a5c
cmp dword [ebp - 0x5c], 8
jb 0x100269a6
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 0x100268c6
mov edi, dword [ebx + 0x2c]
cmp edi, dword [ebx + 0x30]
je 0x10026ac1
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.1000a770
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 0x10026a30
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x54]
call fcn.1000a640
mov ecx, dword [edi + 0x10]
mov edx, 8
cmp dword [edi + 0x14], edx
jb 0x10026a73
mov eax, dword [edi]
jmp 0x10026a75
cmp dword [ebp - 0x5c], 8
jb 0x10026a6f
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 0x10026ac3
mov eax, edi
cmp dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x54]
jae 0x10026a80
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 0x10026ade
cmp dword [ebp - 0x40], 8
jb 0x10026ab5
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 0x100269be
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.10045a28
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x40], 8
jb 0x10026a6f
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 0x10026ac3