Function at 0x100173d1
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 0x1001764a
push edi
mov ecx, ebx
call fcn.10017c7a
mov ebx, eax
test ebx, ebx
jns 0x1001742b
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x100174af
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 0x10017459
inc ebx
cmp ebx, 3
jb 0x1001742f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ebx, 0x80020009
jmp 0x1001779a
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 0x10017487
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10017649
mov ecx, dword [ebp - 0x1c]
call fcn.10018468
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.10017c7a
mov ebx, eax
test ebx, ebx
jns 0x100174b5
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 0x1001779a
mov eax, dword [ebp - 0x14]
xor edx, edx
movzx eax, ax
mov dword [ebp - 0x24], edx
sub eax, 8
je 0x100175e0
sub eax, 9
je 0x100174fa
dec eax
sub eax, 1
jne 0x10017760
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 0x100175cc
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x100174ff
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x20], ebx
test bl, 1
jne 0x10017554
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
cmp eax, 0x400
ja 0x1001753e
mov ecx, eax
call fcn.10017887
test al, al
mov eax, dword [ebp - 8]
je 0x1001753e
call fcn.100350d0
mov eax, esp
jmp 0x1001754d
push eax
lea ecx, [ebp - 0x18]
call fcn.100178f0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1001756e
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80004005
jmp 0x10017785
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 0x100175c3
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x20]
mov cx, word [ebx + edx*2]
mov edi, edx
shr edi, 1
call fcn.1001734b
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 0x1001758e
mov esi, dword [ebp - 0x28]
xor eax, eax
mov edi, dword [ebp - 0xc]
jmp 0x100175c6
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 0x10017760
mov ebx, edx
cmp byte [ebp + 0x14], dl
je 0x1001771d
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100175f2
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffe
jle 0x10017625
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 0x1001779a
push 0x2000
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x10017654
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 0x1001779a
mov ecx, dword [ebp - 0x1c]
push 0x10005bec
mov ecx, dword [ecx + 4]
call fcn.10017240
mov ebx, eax
test ebx, ebx
je 0x1001771a
mov edx, ebx
mov ecx, edi
call fcn.1001729d
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1001771a
cmp eax, dword [ebp + 0x10]
je 0x1001769c
push eax
push edi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
cmp word [eax], 0x22
je 0x1001771a
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 0x100176ee
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 0x1001771f
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 0x10017727
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 0x10017760
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.10017c7a
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 0x10017785
xor eax, eax
mov ebx, eax
pop ecx
test esi, esi
jmp 0x10017797
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.msvcrt.dll_free]
test edi, edi
pop ecx
jne 0x1001778a
mov eax, ebx
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100342d0
leave
ret 0x10