Function at 0x10003711
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.1000b740
push 0xffffffffffffffff
push 0x1000c92d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10016114]
xor eax, ebp
mov dword [ebp + 0x1104], 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 - 0x20], ecx
mov eax, dword [ebp + 0x1118]
xor ebx, ebx
mov edi, dword [ebp + 0x1110]
mov esi, dword [ebp + 0x1114]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
call fcn.10006890
test eax, eax
js 0x10003aec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.1000bb8b
pop ecx
pop ecx
test eax, eax
jne 0x100037ab
mov eax, 0x80020009
jmp 0x10003aec
mov ecx, dword [ebp - 0x20]
call fcn.10009142
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x104]
push eax
call fcn.10006890
test eax, eax
js 0x10003aec
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x10003aa0
sub eax, 9
je 0x1000398d
dec eax
sub eax, 1
je 0x100038d2
sub eax, 0x3ff5
jne 0x10003ad8
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100037fe
sub ecx, edx
mov dword [ebp], ebx
add ecx, 2
push 1
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 4], 1
call fcn.1000bb8b
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x10003830
push eax
lea ecx, [ebp]
call fcn.10003b44
jmp 0x10003846
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x10003849
mov esi, dword [ebp]
test esi, esi
je 0x100038b7
cmp byte [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x1000389d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x1000387c
cmp byte [eax], 0x30
jne 0x1000387c
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x10003897
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10003896
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x1000389d
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x1000385c
mov ecx, dword [ebp - 0x18]
mov word [esi], 0
push dword [ebp]
push dword [ebp - 0x1c]
call fcn.10008f28
mov esi, dword [ebp]
mov edi, eax
jmp 0x100038ba
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x10003acb
lea ecx, [ebp]
call fcn.100056de
jmp 0x10003acb
mov dword [ebp - 0x18], ebx
lea ecx, [ebp + 0x104]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100038e5
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002283
add esp, 0xc
test eax, eax
js 0x10003979
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x1000392b
push esi
call fcn.10009d34
pop ecx
test al, al
je 0x1000392b
mov eax, esi
call fcn.1000b770
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10003934
push esi
lea ecx, [ebp - 0x18]
call fcn.10003b19
push 3
shr esi, 1
lea ecx, [ebp + 0x104]
push esi
push ecx
push eax
call fcn.1000bb8b
test eax, eax
je 0x10003979
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
js 0x1000397e
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.10008ec6
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.100028d4
jmp 0x10003acb
mov esi, 0x8007000e
lea ecx, [ebp - 0x18]
call fcn.100028d4
mov eax, esi
jmp 0x10003aec
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003996
sub ecx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], ecx
test cl, 1
je 0x100039b4
mov eax, 0x80004005
jmp 0x10003aec
mov eax, ecx
mov dword [ebp], ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x24], edi
push 1
mov dword [ebp - 4], 4
push edi
mov byte [ebp - 4], 5
call fcn.1000bb8b
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x100039ed
push eax
lea ecx, [ebp]
call fcn.10003b44
mov eax, dword [ebp]
jmp 0x100039f3
lea eax, [ebp + 4]
mov dword [ebp], eax
mov esi, dword [ebp - 0x28]
jmp 0x10003a12
test eax, eax
jne 0x10003a20
lea ecx, [ebp]
call fcn.100056de
jmp 0x100039aa
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebx
mov dword [ebp - 0x14], eax
test esi, esi
jle 0x10003a77
mov ebx, dword [ebp - 0x28]
mov edi, eax
test edi, edi
jns 0x10003a40
add edi, 1
sar edi, 1
movzx eax, byte [ebp + eax + 0x104]
mov esi, dword [ebp]
push eax
call fcn.10004304
mov edx, dword [ebp - 0x14]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x10003a37
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10003acb
lea ecx, [ebp]
call fcn.100056de
jmp 0x10003acb
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003aa9
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x10003ad8
push edi
call fcn.10003e28
pop ecx
jmp 0x10003aec
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
call fcn.10006890
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.1000b5fc
add ebp, 0x1108
leave
ret 0xc