Function at 0x4813dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2780
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.005918e0
mov eax, dword [0x6c45ac]
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 - 0x2124], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x212c], ecx
mov dword [ebp - 0x2128], esi
mov dword [ebp - 0x2120], edi
mov dword [ebp - 0x211c], ebx
call fcn.004818e4
test eax, eax
js 0x4817e6
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.00481363
test eax, eax
jne 0x481474
mov eax, 0x80020009
jmp 0x4817e6
mov ecx, dword [ebp - 0x2124]
call fcn.0048205f
mov ecx, dword [ebp - 0x2124]
lea eax, [ebp - 0x2014]
push eax
call fcn.004818e4
test eax, eax
js 0x4817e6
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x481795
sub eax, 9
je 0x481633
push 2
pop edi
sub eax, edi
je 0x4815f2
sub eax, 0x3ff5
jne 0x4817cc
lea eax, [ebp - 0x2014]
push eax
call fcn.005b93d0
pop ecx
add eax, edi
mov dword [ebp - 0x2118], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x481802
jb 0x4814f9
cmp eax, 0xffffffff
ja 0x481802
cmp eax, 0x100
jbe 0x48150e
push eax
lea ecx, [ebp - 0x2118]
call fcn.00480e48
jmp 0x481530
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x481536
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x4815d1
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x481583
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x481575
push 0x30
pop edx
cmp word [eax], dx
jne 0x481575
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x48157b
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x48154e
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2118]
test esi, esi
jne 0x481595
push 0xd
jmp 0x4815d3
mov edi, ebx
mov ebx, esi
push ebx
call fcn.005b93d0
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x481599
mov eax, dword [ebp - 0x2128]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x2120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x4815d4
push 0xe
pop edi
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x4817bf
lea ecx, [ebp - 0x2118]
call fcn.00480e33
jmp 0x4817bf
lea eax, [ebp - 0x212c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x4817e6
mov eax, dword [ebp - 0x212c]
push 4
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x211c]
push eax
push 4
push ebx
push dword [ebp - 0x2120]
jmp 0x4817b5
lea eax, [ebp - 0x2014]
push eax
call fcn.005b93d0
mov dword [ebp - 0x2130], eax
pop ecx
test al, 1
je 0x481654
mov eax, 0x80004005
jmp 0x4817e6
cdq
sub eax, edx
mov dword [ebp - 0x2118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0x100
jbe 0x4816b0
push esi
lea ecx, [ebp - 0x2118]
call fcn.00480e48
mov eax, dword [ebp - 0x2118]
jmp 0x4816bc
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
test eax, eax
jne 0x4816d0
lea ecx, [ebp - 0x2118]
call fcn.00480e33
jmp 0x48164a
push esi
push ebx
push eax
call fcn.005a88e0
mov edi, dword [ebp - 0x2130]
add esp, 0xc
test edi, edi
jle 0x48175a
mov esi, ebx
movzx ecx, word [ebp + esi*2 - 0x2014]
mov eax, esi
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
add eax, dword [ebp - 0x2118]
mov dword [ebp - 0x2130], eax
mov eax, ecx
push 0x30
pop ecx
cmp ax, cx
jb 0x481736
cmp eax, 0x39
jbe 0x481731
cmp eax, 0x40
jbe 0x481736
cmp eax, 0x46
jbe 0x48172c
cmp eax, 0x60
jbe 0x481736
cmp edx, 0x66
ja 0x481736
sub dl, 0x57
jmp 0x481738
sub dl, 0x37
jmp 0x481738
sub dl, 0x30
jmp 0x481738
mov dl, bl
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2130]
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x4816e7
mov esi, dword [ebp - 0x211c]
mov eax, dword [ebp - 0x2128]
push esi
push dword [ebp - 0x2118]
push 3
push ebx
push dword [ebp - 0x2120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x4817bf
lea ecx, [ebp - 0x2118]
call fcn.00480e33
jmp 0x4817bf
lea eax, [ebp - 0x2014]
push eax
call fcn.005b93d0
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x4817cc
mov ecx, edi
call fcn.004818d6
jmp 0x4817e6
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x2124]
call fcn.004818e4
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
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.00590be8
leave
ret 0xc
push 0x80070216
call fcn.00422a7e
int3