Function at 0x100173a1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003b2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov ebx, ecx
mov esi, eax
mov dword [ebp - 0x1c], ebx
push edi
push 0x2000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x1001761a
push edi
mov ecx, ebx
call fcn.10017c4a
mov ebx, eax
test ebx, ebx
jns 0x100173fb
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x1001747f
xor eax, eax
mov ebx, eax
push dword [ebx*8 + 0x10002290]
push edi
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x10017429
inc ebx
cmp ebx, 3
jb 0x100173ff
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ebx, 0x80020009
jmp 0x1001776a
movzx eax, word [ebx*8 + 0x10002294]
push 0x2000
mov dword [ebp - 0x14], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
mov dword [ebp - 0xc], edi
pop ecx
test edi, edi
jne 0x10017457
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10017619
mov ecx, dword [ebp - 0x1c]
call fcn.10018438
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.10017c4a
mov ebx, eax
test ebx, ebx
jns 0x10017485
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
jmp 0x1001776a
mov eax, dword [ebp - 0x14]
xor edx, edx
movzx eax, ax
mov dword [ebp - 0x24], edx
sub eax, 8
je 0x100175b0
sub eax, 9
je 0x100174ca
dec eax
sub eax, 1
jne 0x10017730
lea eax, [ebp - 0x24]
push eax
push edx
push edx
push edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 4
xor eax, eax
jmp 0x1001759c
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x100174cf
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x20], ebx
test bl, 1
jne 0x10017524
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
cmp eax, 0x400
ja 0x1001750e
mov ecx, eax
call fcn.10017857
test al, al
mov eax, dword [ebp - 8]
je 0x1001750e
call fcn.100350a0
mov eax, esp
jmp 0x1001751d
push eax
lea ecx, [ebp - 0x18]
call fcn.100178c0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1001753e
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80004005
jmp 0x10017755
push dword [ebp - 8]
xor ecx, ecx
push ecx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x18], edx
test ebx, ebx
jle 0x10017593
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x20]
mov cx, word [ebx + edx*2]
mov edi, edx
shr edi, 1
call fcn.1001731b
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x18]
shl al, cl
mov ecx, dword [ebp - 0x14]
or byte [edi + ecx], al
inc edx
mov dword [ebp - 0x18], edx
cmp edx, esi
jl 0x1001755e
mov esi, dword [ebp - 0x28]
xor eax, eax
mov edi, dword [ebp - 0xc]
jmp 0x10017596
mov ecx, dword [ebp - 0x14]
push dword [ebp - 8]
push ecx
push 3
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x10017730
mov ebx, edx
cmp byte [ebp + 0x14], dl
je 0x100176ed
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100175c2
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffe
jle 0x100175f5
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov ebx, 0x80004005
jmp 0x1001776a
push 0x2000
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x10017624
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov ebx, 0x8007000e
jmp 0x1001776a
mov ecx, dword [ebp - 0x1c]
push 0x10005bec
mov ecx, dword [ecx + 4]
call fcn.10017210
mov ebx, eax
test ebx, ebx
je 0x100176ea
mov edx, ebx
mov ecx, edi
call fcn.1001726d
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100176ea
cmp eax, dword [ebp + 0x10]
je 0x1001766c
push eax
push edi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
cmp word [eax], 0x22
je 0x100176ea
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub eax, edi
sar eax, 1
xor edx, edx
push eax
push edi
push ecx
mov word [ecx], dx
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
push 0x10005bfc
push 0x1000
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscat_s]
push ebx
push 0x1000
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscat_s]
push 0x10005bfc
push 0x1000
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0x24
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x100176be
mov eax, dword [ebp - 0xc]
sub ebx, ecx
sar ebx, 1
lea eax, [eax + ebx*2]
mov ebx, dword [ebp - 8]
push eax
push 0x1000
push ebx
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
mov edx, ebx
jmp 0x100176ef
mov ebx, dword [ebp - 8]
mov edx, edi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x20]
jne 0x100176f7
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
xor eax, eax
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test ebx, ebx
je 0x10017730
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.10017c4a
push edi
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
test ebx, ebx
js 0x10017755
xor eax, eax
mov ebx, eax
pop ecx
test esi, esi
jmp 0x10017767
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.msvcrt.dll_free]
test edi, edi
pop ecx
jne 0x1001775a
mov eax, ebx
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100342a0
leave
ret 0x10