Function at 0x100060c5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001917e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.10019030
mov eax, dword [0x1001e2c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1128], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1124], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x111c], edi
call fcn.10005fab
test eax, eax
js 0x10006592
xor ebx, ebx
mov esi, ebx
push dword [esi*8 + 0x100011e0]
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10006164
inc esi
cmp esi, 4
jb 0x1000613c
mov eax, 0x80020009
jmp 0x10006592
mov ecx, dword [ebp - 0x1128]
movzx esi, word [esi*8 + 0x100011e4]
call fcn.10005f85
mov ecx, dword [ebp - 0x1128]
lea eax, [ebp - 0x1014]
push eax
call fcn.10005fab
test eax, eax
js 0x10006592
mov eax, esi
sub eax, 8
je 0x1000653e
sub eax, 9
je 0x100063cd
push 2
pop edx
sub eax, edx
je 0x100062c6
sub eax, 0x3ff5
jne 0x1000657b
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100061c4
sub ecx, edx
mov dword [ebp - 0x1118], ebx
add ecx, 2
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.1000906b
cmp eax, 0x100
jbe 0x100061fd
push eax
lea ecx, [ebp - 0x1118]
call fcn.10008f84
mov esi, dword [ebp - 0x1118]
jmp 0x10006209
lea esi, [ebp - 0x1114]
mov dword [ebp - 0x1118], esi
mov dword [ebp - 4], ebx
jmp 0x1000622b
test esi, esi
je 0x100062a5
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x1000627f
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x1000625e
cmp byte [eax], 0x30
jne 0x1000625e
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x10006279
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10006278
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x1000627f
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x1000623e
mov ecx, dword [ebp - 0x111c]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1124]
call fcn.100052b4
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x100062a8
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x1000656e
lea ecx, [ebp - 0x1118]
call fcn.10008c94
jmp 0x1000656e
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x111c], ebx
lea esi, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100062e2
sub esi, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x1120], esi
imul edx
cmp edx, ebx
jg 0x10006318
jl 0x10006303
cmp eax, 0x7fffffff
ja 0x10006318
push edx
push eax
lea ecx, [ebp - 0x1120]
call fcn.10004e15
mov esi, dword [ebp - 0x1120]
jmp 0x1000631d
mov eax, 0x80070057
test eax, eax
js 0x100063b6
cmp esi, 0x400
jg 0x10006346
mov ecx, esi
call fcn.10004e3b
test al, al
je 0x10006346
mov eax, esi
call fcn.10019000
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10006352
push esi
lea ecx, [ebp - 0x111c]
call fcn.100088ed
push 3
shr esi, 1
lea edx, [ebp - 0x1014]
push esi
mov ecx, eax
call fcn.10004eac
test eax, eax
je 0x100063b6
lea ecx, [ebp - 0x112c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
js 0x100063bb
mov eax, dword [ebp - 0x112c]
push 4
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
push 4
push ebx
push dword [ebp - 0x1124]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x111c]
mov edi, eax
call fcn.100088d1
jmp 0x1000656e
mov esi, 0x8007000e
lea ecx, [ebp - 0x111c]
call fcn.100088d1
mov eax, esi
jmp 0x10006592
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100063d6
sub ecx, edx
mov dword [ebp - 0x1134], ecx
mov dword [ebp - 0x1130], ecx
test cl, 1
jne 0x1000647f
mov eax, ecx
mov dword [ebp - 0x1118], ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1120], edi
mov dword [ebp - 4], 4
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.1000906b
cmp eax, 0x100
jbe 0x10006436
push eax
lea ecx, [ebp - 0x1118]
call fcn.10008f84
mov eax, dword [ebp - 0x1118]
jmp 0x10006442
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov esi, dword [ebp - 0x1134]
jmp 0x10006470
test eax, eax
jne 0x10006489
lea ecx, [ebp - 0x1118]
call fcn.10008c94
mov eax, 0x80004005
jmp 0x10006592
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jle 0x10006503
mov edi, ebx
mov eax, edi
cdq
sub eax, edx
mov dl, byte [ebp + edi - 0x1014]
sar eax, 1
add eax, dword [ebp - 0x1118]
mov dword [ebp - 0x1130], eax
cmp dl, 0x30
jl 0x100064df
cmp dl, 0x39
jle 0x100064da
cmp dl, 0x40
jle 0x100064df
cmp dl, 0x46
jle 0x100064d5
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x100064df
sub dl, 0x57
jmp 0x100064e1
sub dl, 0x37
jmp 0x100064e1
sub dl, 0x30
jmp 0x100064e1
mov dl, bl
mov eax, edi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x1130]
shl dl, cl
or byte [eax], dl
inc edi
cmp edi, esi
jl 0x1000649a
mov edi, dword [ebp - 0x1120]
mov eax, dword [ebp - 0x111c]
push edi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1000656e
lea ecx, [ebp - 0x1118]
call fcn.10008c94
jmp 0x1000656e
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006547
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
push dword [ebp - 0x1124]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x1000657b
mov ecx, edi
call fcn.1000503a
jmp 0x10006592
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x1128]
call fcn.10005fab
test eax, eax
js 0x10006592
xor eax, eax
lea esp, [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10018600
leave
ret 0xc