Function at 0x100045a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003531e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1114
call fcn.10022b00
push ebx
push esi
push edi
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], edi
call fcn.10003150
cmp eax, edi
jl 0x10004929
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1124]
push edx
call fcn.10002f90
add esp, 8
test eax, eax
jne 0x10004608
mov eax, 0x80020009
jmp 0x10004929
mov ecx, esi
call fcn.100030f0
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.10003150
cmp eax, edi
jl 0x10004929
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x10004829
je 0x10004778
cmp eax, 8
je 0x1000475c
cmp eax, 0x11
jne 0x10004914
lea ecx, [ebp - 0x1124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test bl, 1
jne 0x100046b9
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 4
push edi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.100042f0
jmp 0x1000469a
mov eax, dword [ebp - 0x124]
test eax, eax
jne 0x100046c3
lea edx, [ebp - 0x120]
test edx, edx
je 0x100046b9
lea ecx, [ebp - 0x124]
call fcn.100037f0
mov eax, 0x80004005
jmp 0x10004929
push edi
push 0
push eax
call fcn.10021df0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x1000471c
jmp 0x100046e0
movzx edx, byte [ebp + esi - 0x1124]
mov ecx, dword [ebp - 0x124]
mov eax, esi
shr eax, 1
push edx
lea edi, [eax + ecx]
call fcn.10003040
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
add esp, 4
or byte [edi], al
cmp esi, ebx
jl 0x100046e0
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x10004900
lea ecx, [ebp - 0x124]
call fcn.100037f0
jmp 0x10004900
mov edx, dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x1124]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.10002df0
mov esi, eax
jmp 0x10004900
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1124]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], eax
call fcn.10002a50
add esp, 0xc
test eax, eax
jl 0x100047eb
mov esi, dword [ebp - 0x18]
cmp esi, 0x400
jg 0x100047cc
push esi
call fcn.10003860
add esp, 4
test al, al
je 0x100047cc
mov eax, esi
call fcn.10022c20
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100047d5
push esi
lea ecx, [ebp - 0x14]
call fcn.10003ba0
push 3
shr esi, 1
push esi
lea edx, [ebp - 0x1124]
push edx
push eax
call fcn.10002aa0
cmp eax, edi
jne 0x100047fd
lea ecx, [ebp - 0x14]
call fcn.10003790
mov eax, 0x8007000e
jmp 0x10004929
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.10002dd0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.10003790
jmp 0x10004900
cmp eax, 0x4008
jne 0x10004914
lea ecx, [ebp - 0x1124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x124], edi
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.100042f0
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x100048e6
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x100048c2
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
lea esp, [esp]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x100048a0
cmp byte [eax], 0x30
jne 0x100048a0
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x100048bd
mov byte [edi], cl
movzx edx, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x100048bb
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x100048c2
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10004880
mov ecx, dword [ebp + 0xc]
mov byte [edi], 0
mov byte [edi + 1], 0
mov eax, dword [ebp - 0x124]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002e30
mov edi, dword [ebp - 0x124]
mov esi, eax
jmp 0x100048eb
mov esi, 0xe
lea edx, [ebp - 0x120]
cmp edi, edx
je 0x10004900
lea ecx, [ebp - 0x124]
call fcn.100037f0
xor edi, edi
cmp esi, edi
je 0x10004911
push esi
call fcn.10002c60
add esp, 4
jmp 0x10004929
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.10003150
xor ecx, ecx
cmp eax, edi
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc