Function at 0x408650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536fec
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x587be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004145bf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408697
push 0x80004005
call fcn.00402b70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], 0
call fcn.004145bf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4086ca
push 0x80004005
call fcn.00402b70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x824], 0x400
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x408714
push 0x104
lea ecx, [ebp - 0x814]
call fcn.00402ad0
mov esi, dword [ebp - 0x814]
call fcn.00418e86
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x44]
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051206a
add esp, 8
test eax, eax
js 0x408991
cmp eax, dword [esi - 8]
jg 0x408991
xor edx, edx
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], dx
call fcn.005130a6
add esp, 8
test eax, eax
jne 0x408767
or eax, 0xffffffff
jmp 0x40876b
sub eax, esi
sar eax, 1
push eax
push 0
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x814]
call fcn.00408c60
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 2
call fcn.00402580
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x5901d4]
cmp dword [eax - 0xc], 0
jne 0x4087ff
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x828]
push eax
push 0xffff
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push 0x10
push 0
lea ecx, [ebp - 0x810]
push ecx
jmp 0x408804
push 0xa
push 0
push eax
call fcn.0051308c
add esp, 0xc
xor edx, edx
mov ecx, 0x591e4c
cmp dword [ecx], eax
je 0x408825
add ecx, 0x14
inc edx
cmp ecx, 0x5920f4
jl 0x408813
jmp 0x408831
lea edx, [edx + edx*4]
cmp dword [edx*4 + 0x591e40], esi
jne 0x408836
mov eax, dword [0x591e74]
xor edx, edx
mov ecx, 0x591e4c
lea ecx, [ecx]
cmp dword [ecx], eax
je 0x408852
add ecx, 0x14
inc edx
cmp ecx, 0x5920f4
jl 0x408840
jmp 0x40885c
lea ecx, [edx + edx*4]
mov esi, dword [ecx*4 + 0x591e40]
push eax
lea edx, [ebp - 0x81c]
push 0x565680
push edx
mov dword [0x58f970], eax
call fcn.00402180
add esp, 0xc
call fcn.004145bf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408890
push 0x80004005
call fcn.00402b70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
lea ecx, [esi + esi*4]
mov byte [ebp - 4], 3
mov edx, dword [ecx*4 + 0x591e44]
push str.nicLan.dll
push edx
lea eax, [ebp - 0x818]
push str.language_s_s
push eax
call fcn.00402180
mov eax, dword [0x58f9d8]
add esp, 0x10
test eax, eax
je 0x4088da
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x818]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x58f9d8], eax
test eax, eax
jne 0x4088fd
call fcn.00418e86
mov eax, dword [eax + 0xc]
mov dword [0x58f9d8], eax
mov esi, eax
call fcn.00418e86
mov dword [eax + 0xc], esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408927
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40894d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00511f1b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402b70
int3