Function at 0x402770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [ebp - 0x3c], eax
mov dword [esp + 4], 0x7d2
mov dword [esp], eax
call dword [0x415664]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [0x415694]
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 - 0x20], edx
call edx
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [0x415698]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x38], eax
call eax
mov edi, dword [ebx + 8]
mov edx, dword [ebp - 0x20]
cmp edi, 7
je 0x402990
ja 0x402818
cmp edi, 2
ja 0x402958
test edi, edi
je 0x4028b8
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x2c]
lea esi, [eax + eax + 2]
mov dword [ebx + 0x10], esi
jmp 0x402870
cmp edi, 0xb
jne 0x4028b8
mov dword [ebx + 0x10], 8
mov dword [esp], 8
call edx
mov esi, dword [0x41400c]
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 - 0x1c]
mov dword [esp], edi
call fcn.00402720
mov dword [esp], edi
mov eax, dword [ebp - 0x38]
call eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x1c]
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 0x402930
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 - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov ecx, dword [0x415704]
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
mov dword [ebp - 0x1c], ecx
call ecx
sub esp, 0x10
mov edi, eax
mov dword [ebx + 0x10], eax
mov dword [esp], eax
mov edx, dword [ebp - 0x20]
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 - 0x1c]
call ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
sub esp, 0x10
mov edi, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
jmp 0x402870
mov dword [esp + 4], 0x7da
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004026f0
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 0x4028b8
mov dword [ebx + 0x10], 4
mov dword [esp], 4
call edx
mov edi, dword [0x41400c]
mov edx, 0x411208
mov ecx, 0x411200
mov dword [ebx + 0xc], eax
test edi, edi
jmp 0x402846
mov esi, dword [ebp - 0x2c]
lea eax, [esi + esi + 4]
mov dword [esp], eax
call edx
mov dword [ebp - 0x30], eax
test esi, esi
je 0x402a70
xor esi, esi
mov dword [ebp - 0x40], edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov edi, esi
jmp 0x4029d6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov word [eax], dx
mov eax, dword [ebp - 0x28]
lea edi, [ecx + ecx]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
jae 0x402a30
lea esi, [eax + eax]
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x1c]
lea ebx, [eax + 1]
mov dword [ebp - 0x28], ebx
lea ebx, [ecx + 1]
mov dword [ebp - 0x24], ebx
movzx edx, word [esi + eax*2]
mov esi, dword [ebp - 0x30]
add esi, edi
mov dword [ebp - 0x20], esi
cmp dx, 0xd
jne 0x4029c0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
cmp word [ebx + esi + 2], 0xa
jne 0x4029c0
mov ebx, dword [ebp - 0x30]
add eax, 2
cmp word [ebx + edi - 2], 0
je 0x4029cf
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
mov word [ecx], bx
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + ecx]
jmp 0x4029cf
mov eax, dword [ebp - 0x30]
mov esi, edi
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
lea edx, [eax + esi]
lea eax, [esi + 2]
add esi, 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 - 0x38]
call eax
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], ecx
mov dword [ebp - 0x1c], ecx
jmp 0x402870
mov edx, dword [ebp - 0x30]
mov esi, 4
mov eax, 2
jmp 0x402a44