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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4242b4]
push ebx
push esi
push edi
xor edi, edi
push 0x405a84
mov dword [ebp - 4], eax
mov ebx, ecx
mov dword [ebp - 0x620], edi
call fcn.0040be00
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x424030
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, edi
jne 0x412ca6
push 0x405a40
jmp 0x412e1d
push edi
push edi
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x412cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4059e0
jmp 0x412ef8
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea eax, [ebp - 0x310]
push eax
push 0xbb8
push dword [ebx + 0x58]
call edi
test eax, eax
jne 0x412cfb
push 0x405990
jmp 0x412e1d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041ae94
add esp, 0x10
test eax, eax
jge 0x412d27
push 0x405958
jmp 0x412e1d
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x620]
push eax
xor eax, eax
push eax
push 3
push eax
push eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x412d5e
push eax
push 0x405910
jmp 0x412ef8
push esi
lea eax, [ebp - 0x108]
push eax
push 0xbba
push dword [ebx + 0x58]
call edi
test eax, eax
jne 0x412d7e
push 0x4058c8
jmp 0x412e1d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412db5
push eax
push 0x405870
jmp 0x412ef8
push esi
lea eax, [ebp - 0x108]
push eax
push 0xbb9
push dword [ebx + 0x58]
call edi
test eax, eax
jne 0x412dd2
push 0x405828
jmp 0x412e1d
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4057d0
jmp 0x412ef8
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
mov ecx, ebx
call fcn.0040f235
test eax, eax
jne 0x412e27
push 0x405778
call fcn.0040be00
jmp 0x412efe
mov esi, dword [ebp - 0x638]
mov edi, dword [ebp - 0x63c]
mov eax, esi
shr eax, 0x10
mov word [ebp - 0x630], ax
push 8
pop ebx
mov eax, edi
shr eax, 0x10
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x644]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x620]
mov word [ebp - 0x62e], si
mov word [ebp - 0x62a], di
mov dword [ebp - 0x634], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412e9f
push eax
push 0x40573c
call fcn.0040be00
pop ecx
pop ecx
jmp 0x412ecf
movzx eax, word [ebp - 0x628]
movzx ecx, word [ebp - 0x626]
shl eax, 0x10
or eax, ecx
cmp eax, esi
ja 0x412f33
jne 0x412ecf
movzx eax, word [ebp - 0x624]
movzx ecx, word [ebp - 0x622]
shl eax, 0x10
or eax, ecx
cmp eax, edi
jae 0x412f33
push ebx
lea eax, [ebp - 0x630]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412f3e
push eax
push 0x4056e8
call fcn.0040be00
pop ecx
cmp dword [ebp - 0x620], 0
pop ecx
je 0x412f25
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x412f25
push eax
push 0x4056a8
call fcn.0040be00
pop ecx
pop ecx
push 0x405680
call fcn.0040be00
xor eax, eax
jmp 0x412f68
push 0x405640
call fcn.0040be00
pop ecx
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x412f5b
push eax
push 0x4055f8
call fcn.0040be00
pop ecx
pop ecx
push 0x4055cc
call fcn.0040be00
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret