Function at 0x402f58
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push ebx
push 0x44aa58
xor esi, esi
push eax
mov dword [ebp - 0x210], esi
call fcn.0042a343
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402fd2
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push 0x44aa8c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0xc], esi
jne 0x40321d
push edi
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 0x44aaa8
lea esi, [edi + 0x12]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
mov dword [edi], 0x80c808d0
push 2
pop ecx
mov dword [edi + 0xa], eax
mov dword [edi + 0xe], 0xb40138
mov word [edi + 8], ax
mov word [esi], ax
add esi, ecx
push 0x44aac4
mov word [esi], ax
add esi, ecx
push esi
call fcn.00402b10
push 8
lea esi, [esi + eax*2]
pop eax
mov word [esi], ax
add esi, 2
push 0x44aae8
push esi
call fcn.00402b10
lea eax, [esi + eax*2]
push eax
call fcn.00401c70
push 7
pop ecx
push 3
mov word [eax + 8], cx
lea esi, [eax + 0x12]
pop ecx
mov word [eax + 0xa], cx
mov ecx, 0x12a
mov word [eax + 0xc], cx
push 0xe
pop ecx
mov word [eax + 0xe], cx
mov ecx, 0x1f6
mov word [eax + 0x10], cx
mov dword [eax], 0x50000000
mov dword [esi], 0x82ffff
add esi, 4
push 0x44ab08
push esi
call fcn.00402b10
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], cx
add eax, 2
inc word [edi + 8]
push eax
call fcn.00401c70
push 0x32
pop ecx
push 0xe
mov word [eax + 0xc], cx
lea esi, [eax + 0x12]
pop ecx
mov word [eax + 0xe], cx
xor ecx, ecx
inc ecx
mov dword [eax + 8], 0x9f00c9
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
add esi, 4
push 0x52a038
push esi
call fcn.00402b10
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], cx
inc word [edi + 8]
add eax, 2
push eax
call fcn.00401c70
push 0x32
pop ecx
push 0xe
mov word [eax + 0xc], cx
lea esi, [eax + 0x12]
pop ecx
mov word [eax + 0xe], cx
push 2
pop ecx
mov dword [eax + 8], 0x9f00ff
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov eax, 0xffff
mov word [esi], ax
add esi, ecx
lea eax, [ecx + 0x7e]
push 0x44abac
mov word [esi], ax
add esi, ecx
push esi
call fcn.00402b10
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], cx
add eax, 2
inc word [edi + 8]
push eax
call fcn.00401c70
push 7
pop ecx
push 0x32
mov word [eax + 8], cx
lea esi, [eax + 0x12]
mov ecx, 0x9f
mov dword [eax], 0x50010000
mov word [eax + 0xa], cx
pop ecx
mov word [eax + 0xc], cx
push 0xe
pop ecx
mov word [eax + 0xe], cx
mov ecx, 0x1f5
mov word [eax + 0x10], cx
mov eax, 0xffff
push 2
pop ecx
mov word [esi], ax
add esi, ecx
push 0x52a04c
lea eax, [ecx + 0x7e]
mov word [esi], ax
add esi, ecx
push esi
call fcn.00402b10
add esp, 0x40
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], cx
add eax, 2
inc word [edi + 8]
push eax
call fcn.00401c70
push 7
pop ecx
push 0xe
mov word [eax + 8], cx
lea esi, [eax + 0x12]
pop ecx
mov word [eax + 0xa], cx
mov ecx, 0x1f4
mov dword [esp], 0x44abd0
push esi
mov dword [eax + 0xc], 0x8c012a
mov word [eax + 0x10], cx
mov dword [eax], 0x50a11844
call fcn.00402b10
push 0x44abac
lea esi, [esi + eax*2]
push esi
call fcn.00402b10
add esp, 0x10
xor ecx, ecx
mov word [esi + eax*2], cx
xor esi, esi
inc word [edi + 8]
push ebx
push 0x402b32
push esi
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp + 0xc], esi
je 0x403237
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x44aa8c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret