Function at 0x10003057
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x109c]
mov eax, 0x111c
call fcn.1000bed0
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x1098], eax
push ebx
mov ebx, dword [ebp + 0x10a4]
mov eax, ecx
mov ecx, dword [ebp + 0x10ac]
push esi
mov dword [ebp - 0x80], ecx
lea ecx, [ebp + 0x98]
push edi
mov edi, dword [ebp + 0x10a8]
push ecx
mov ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], edi
call fcn.10007110
test eax, eax
js 0x100032cc
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiA]
lea eax, [ebp + 0x98]
push 0x1001f440
push eax
call esi
test eax, eax
jne 0x10002f35
lea esi, [eax + 8]
jmp 0x10002f7e
push 0x1001f45c
lea eax, [ebp + 0x98]
push eax
call esi
test eax, eax
jne 0x10002f4e
mov esi, 0x4008
jmp 0x10002f7e
push 0x1001f47c
lea eax, [ebp + 0x98]
push eax
call esi
test eax, eax
jne 0x10002f65
lea esi, [eax + 0x13]
jmp 0x10002f7e
push 0x1001f498
lea eax, [ebp + 0x98]
push eax
call esi
test eax, eax
jne 0x100032c7
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x78]
call fcn.10009870
mov ecx, dword [ebp - 0x78]
lea eax, [ebp + 0x98]
push eax
call fcn.10007110
test eax, eax
js 0x100032cc
cmp esi, 0x13
ja 0x100031ad
je 0x100030e8
cmp esi, 8
je 0x100030b4
cmp esi, 0x11
jne 0x100032b1
lea ebx, [ebp + 0x98]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10002fc7
sub ebx, ecx
test bl, 1
jne 0x10003008
mov eax, ebx
mov dword [ebp - 0x6c], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x7c], esi
cmp esi, 0x100
jbe 0x10003012
push esi
lea ecx, [ebp - 0x6c]
call fcn.100033f0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x10003018
lea ecx, [ebp - 0x6c]
call fcn.10005750
mov eax, 0x80004005
jmp 0x100032cc
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
push esi
push 0
push eax
call fcn.1000c990
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x10003083
nop word [eax + eax]
mov dl, byte [ebp + edi + 0x98]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x6c]
movsx eax, dl
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x10003050.58
movzx eax, byte [eax + 0x100032fc]
jmp dword [eax*4 + 0x100032ec]
sub dl, 0x30
jmp 0x10003068
sub dl, 0x37
jmp 0x10003068
sub dl, 0x57
jmp 0x10003068
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x10003030
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
push esi
push dword [ebp - 0x6c]
push 3
push 0
push dword [ebp - 0x70]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x100032a2
lea ecx, [ebp - 0x6c]
call fcn.10005750
jmp 0x100032a2
lea ecx, [ebp + 0x98]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100030c0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x98]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x100032a2
lea ecx, [ebp + 0x98]
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100030f8
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.10002410
add esp, 0xc
test eax, eax
js 0x10003199
mov esi, dword [ebp - 0x70]
cmp esi, 0x400
jg 0x1000313d
push esi
call fcn.1000b1ff
add esp, 4
test al, al
je 0x1000313d
mov eax, esi
call fcn.1000bf00
mov eax, esp
jmp 0x10003146
push esi
lea ecx, [ebp - 0x74]
call fcn.10003380
push 3
shr esi, 1
lea ecx, [ebp + 0x98]
push esi
push ecx
push eax
call fcn.100034b0
test eax, eax
je 0x10003199
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
js 0x1000319e
mov eax, dword [ebp - 0x7c]
push 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10002530
jmp 0x100032a2
mov esi, 0x8007000e
lea ecx, [ebp - 0x74]
call fcn.10002530
mov eax, esi
jmp 0x100032cc
cmp esi, 0x4008
jne 0x100032b1
lea ecx, [ebp + 0x98]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100031c2
sub ecx, edx
mov dword [ebp - 0x6c], 0
add ecx, 2
cmp ecx, 0x100
jbe 0x100031f5
push ecx
lea ecx, [ebp - 0x6c]
call fcn.100033f0
mov edi, dword [ebp - 0x6c]
test edi, edi
jne 0x100031fb
lea esi, [edi + 0xe]
jmp 0x10003293
lea edi, [ebp - 0x68]
mov dword [ebp - 0x6c], edi
cmp byte [ebp + 0x98], 0
lea esi, [ebp + 0x98]
je 0x1000324b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10003229
cmp byte [eax], 0x30
jne 0x10003229
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x10003245
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10003244
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x1000324b
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x10003210
mov word [edi], 0
mov edi, dword [ebp - 0x6c]
test edi, edi
jne 0x1000325c
lea esi, [edi + 0xd]
jmp 0x10003293
xor esi, esi
mov edx, edi
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003265
sub ecx, ebx
lea eax, [ecx + 1]
add edx, eax
add esi, eax
cmp eax, 1
jne 0x10003260
mov eax, dword [ebp - 0x74]
push esi
push edi
push 7
push 0
push dword [ebp - 0x70]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x6c]
mov esi, eax
lea eax, [ebp - 0x68]
cmp edi, eax
je 0x100032a2
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x100032b1
push esi
call fcn.10003940
add esp, 4
jmp 0x100032cc
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
call fcn.10007110
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x100032cc
mov eax, 0x80020009
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1098]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x109c]
pop ebp
ret 0xc