Function at 0x40e870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x5c
mov dword [ebp - 0x38], eax
mov dword [esp + 4], 0x7d2
mov dword [esp], eax
call dword [0x417674]
sub esp, 8
mov ebx, eax
mov dword [esp], eax
call dword [0x4176a4]
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
lea edi, [eax + 1]
sub esp, 4
lea eax, [edi + edi]
mov dword [ebp - 0x20], ecx
mov dword [esp], eax
call ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x4176a8]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x34], eax
call eax
mov edi, dword [esi + 8]
mov ecx, dword [ebp - 0x20]
cmp edi, 7
je 0x40ea78
ja 0x40e9a0
cmp edi, 2
jbe 0x40e9d0
cmp edi, 4
jne 0x40e9d8
mov dword [esi + 0x10], 4
mov dword [esp], 4
call ecx
mov edi, dword [0x410df8]
mov edx, 0x412148
mov ecx, 0x412150
mov dword [esi + 0xc], eax
test edi, edi
mov edi, dword [ebp - 0x1c]
cmove edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._swscanf
mov dword [esp], edi
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x40ea50
xor eax, eax
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edi, 0xb
jne 0x40e9d8
mov dword [esi + 0x10], 8
mov dword [esp], 8
call ecx
mov ebx, dword [0x410df8]
mov edx, str._I64u
mov ecx, str._I64x
mov dword [esi + 0xc], eax
test ebx, ebx
jmp 0x40e92a
test edi, edi
jne 0x40eb00
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov edx, dword [0x417714]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
call edx
mov ecx, dword [ebp - 0x20]
sub esp, 0x10
mov edi, eax
mov dword [esi + 0x10], eax
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x401
call edx
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 8]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x40e954
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], 0x7da
mov dword [esp], eax
call sym._error_code_messagebox
xor eax, eax
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x2c]
lea eax, [ebx + ebx + 4]
mov dword [esp], eax
call ecx
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x40eb60
xor ecx, ecx
mov dword [ebp - 0x3c], edi
xor ebx, ebx
mov dword [ebp - 0x40], esi
mov edi, ecx
jmp 0x40eab1
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov word [esi], ax
cmp dword [ebp - 0x2c], ebx
jbe 0x40eb18
lea eax, [ebx + ebx]
lea edx, [ebx + 1]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
lea edx, [edi + edi]
add ecx, edx
movzx eax, word [eax + ebx*2]
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 1]
mov dword [ebp - 0x24], ecx
cmp ax, 0xd
jne 0x40eaa0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx + esi + 2], 0xa
jne 0x40eaa0
mov eax, dword [ebp - 0x30]
add ebx, 2
cmp word [eax + edx - 2], 0
je 0x40eaac
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edi, dword [ebp - 0x24]
mov word [eax], cx
jmp 0x40eaac
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + eax + 2]
mov dword [esi + 0x10], ebx
jmp 0x40e954
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov esi, dword [ebp - 0x40]
lea ebx, [ecx + ecx]
mov edi, dword [ebp - 0x3c]
lea edx, [eax + ebx]
lea eax, [ebx + 2]
add ebx, 4
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ecx
mov dword [ebp - 0x1c], ecx
jmp 0x40e954
mov edx, dword [ebp - 0x30]
mov ebx, 4
mov eax, 2
jmp 0x40eb2f