Function at 0x4027b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x34
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0x7d2
mov dword [esp], eax
call dword [0x41665c]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [0x41668c]
mov edx, dword [sym.imp.ucrtbase.dll_malloc]
lea edi, [eax + 1]
sub esp, 4
lea eax, [edi + edi]
mov dword [esp], eax
mov dword [ebp - 0x18], edx
call edx
mov dword [ebp - 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [0x416690]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
call eax
mov edi, dword [ebx + 8]
mov edx, dword [ebp - 0x18]
cmp edi, 7
je 0x4029d0
ja 0x402858
cmp edi, 2
ja 0x402998
test edi, edi
je 0x4028f8
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
lea esi, [eax + eax + 2]
mov dword [ebx + 0x10], esi
jmp 0x4028b0
cmp edi, 0xb
jne 0x4028f8
mov dword [ebx + 0x10], 8
mov dword [esp], 8
call edx
mov esi, dword [0x41500c]
mov edx, str._I64x
mov ecx, str._I64u
mov dword [ebx + 0xc], eax
test esi, esi
cmovne edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call fcn.00402760
mov dword [esp], esi
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x402970
xor eax, eax
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [0x4166fc]
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
mov dword [ebp - 0x10], ecx
call ecx
sub esp, 0x10
mov edi, eax
mov dword [ebx + 0x10], eax
mov dword [esp], eax
mov edx, dword [ebp - 0x14]
call edx
mov dword [ebx + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x401
mov ecx, dword [ebp - 0x10]
call ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
sub esp, 0x10
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x4028b0
mov dword [esp + 4], 0x7da
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00402730
xor eax, eax
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edi, 4
jne 0x4028f8
mov dword [ebx + 0x10], 4
mov dword [esp], 4
call edx
mov edi, dword [0x41500c]
mov edx, 0x412208
mov ecx, 0x412200
mov dword [ebx + 0xc], eax
test edi, edi
jmp 0x402886
mov esi, dword [ebp - 0x14]
lea eax, [esi + esi + 4]
mov dword [esp], eax
call edx
mov dword [ebp - 0x18], eax
test esi, esi
je 0x402aa0
mov esi, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
jmp 0x402a13
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
mov eax, ebx
add edx, 1
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x402a58
movzx ecx, word [esi + eax*2]
lea edi, [eax + eax]
lea ebx, [eax + 1]
cmp cx, 0xd
jne 0x402a00
cmp word [esi + edi + 2], 0xa
jne 0x402a00
add eax, 2
test edx, edx
je 0x402a0c
mov edi, dword [ebp - 0x18]
lea ecx, [edx + 0x7fffffff]
lea ebx, [ecx + ecx]
cmp word [edi + ecx*2], 0
je 0x402a0c
xor ecx, ecx
add edx, 1
mov word [edi + ebx + 2], cx
jmp 0x402a0c
mov eax, dword [ebp - 0x18]
add edx, edx
mov edi, dword [ebp - 0x24]
lea esi, [edx + 4]
mov ebx, dword [ebp - 0x28]
lea ecx, [eax + edx]
lea eax, [edx + 2]
xor edx, edx
mov word [ecx], dx
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], ecx
mov dword [ebp - 0x10], ecx
jmp 0x4028b0
mov ecx, dword [ebp - 0x18]
mov esi, 4
mov eax, 2
jmp 0x402a6c