Function at 0x4027c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x44
mov dword [ebp - 0x30], 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 - 0x14], 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]
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], eax
call eax
mov edi, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
cmp edi, 7
je 0x4029e0
ja 0x402868
cmp edi, 2
ja 0x4029a8
test edi, edi
je 0x402908
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
lea esi, [eax + eax + 2]
mov dword [ebx + 0x10], esi
jmp 0x4028c0
cmp edi, 0xb
jne 0x402908
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 edi, dword [ebp - 0x10]
mov dword [esp], edi
call fcn.00402770
mov dword [esp], edi
mov eax, dword [ebp - 0x2c]
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 0x402980
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 - 0x2c]
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]
sub esp, 0x10
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x4028c0
mov dword [esp + 4], 0x7da
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00402740
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 0x402908
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 0x402896
mov esi, dword [ebp - 0x20]
lea eax, [esi + esi + 4]
mov dword [esp], eax
call edx
mov dword [ebp - 0x24], eax
test esi, esi
je 0x402ac0
xor esi, esi
mov dword [ebp - 0x34], edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38], ebx
mov edi, esi
jmp 0x402a26
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov word [eax], dx
mov eax, dword [ebp - 0x1c]
lea edi, [ecx + ecx]
mov edx, dword [ebp - 0x20]
cmp eax, edx
jae 0x402a80
lea esi, [eax + eax]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x10]
lea ebx, [eax + 1]
mov dword [ebp - 0x1c], ebx
lea ebx, [ecx + 1]
mov dword [ebp - 0x18], ebx
movzx edx, word [esi + eax*2]
mov esi, dword [ebp - 0x24]
add esi, edi
mov dword [ebp - 0x14], esi
cmp dx, 0xd
jne 0x402a10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
cmp word [ebx + esi + 2], 0xa
jne 0x402a10
mov ebx, dword [ebp - 0x24]
add eax, 2
cmp word [ebx + edi - 2], 0
je 0x402a1f
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov word [ecx], bx
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + ecx]
jmp 0x402a1f
mov eax, dword [ebp - 0x24]
mov esi, edi
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
lea edx, [eax + esi]
lea eax, [esi + 2]
add esi, 4
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], ecx
mov dword [ebp - 0x10], ecx
jmp 0x4028c0
mov edx, dword [ebp - 0x24]
mov esi, 4
mov eax, 2
jmp 0x402a94