Function at 0x402094
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 0x10]
push 1
push 0x40156c
push ebx
call fcn.00401696
test eax, eax
je 0x4020cc
xor esi, esi
inc esi
mov dword [ebp - 8], esi
jmp 0x4020b0
push 1
push 0x401564
push ebx
call fcn.00401696
test eax, eax
je 0x4020e2
xor esi, esi
inc esi
jmp 0x4020b0
push 1
push 0x40155c
push ebx
call fcn.00401696
test eax, eax
je 0x4020fc
mov dword [ebp - 4], 1
jmp 0x4020b0
push 0x40154c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x402111
xor esi, esi
inc esi
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x4022a6
push edi
push edi
push 0x4011b4
push 0x401170
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueA]
test eax, eax
jne 0x4022a6
call dword [sym.imp.SHLWAPI.dll_WhichPlatform]
cmp eax, 2
jne 0x4022a6
call dword [sym.imp.USER32.dll_GetShellWindow]
mov esi, eax
cmp esi, edi
je 0x4022a6
mov eax, dword [ebp + 0x14]
push 0x109c
push 0x40
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp + 0x14], eax
je 0x402375
push 0x824
push eax
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401609
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40228f
cmp byte [ebx], 0
mov dword [ebp + 0x10], edi
jne 0x4021ba
call fcn.004016f8
test eax, eax
je 0x4021cb
cmp dword [ebp - 4], edi
jne 0x4021cb
lea eax, [ebp - 0x18]
push eax
call fcn.00401609
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], edi
jne 0x4021de
cmp byte [ebx], 0
je 0x4021de
cmp dword [ebp - 4], edi
je 0x402286
lea eax, [ebp - 0x18]
push eax
push esi
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, edi
mov dword [ebp + 0x14], edi
je 0x402278
push 0x2710
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], edi
je 0x402286
push dword [ebp + 8]
call fcn.0040174a
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 8], eax
push 0xff
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x10]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, eax
cmp ebx, edi
jne 0x402261
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x402261
cmp dword [ebp - 0x30], 0x12
je 0x402272
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call esi
test eax, eax
jne 0x402247
jmp 0x402274
xor ebx, ebx
cmp ebx, edi
jne 0x402222
cmp dword [ebp + 0x10], edi
je 0x402286
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], edi
je 0x402375
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402375
call fcn.00401887
cmp dword [ebp - 8], edi
je 0x4022f6
push dword [ebp + 8]
call fcn.004017ca
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x40153c
call esi
push 0x40152c
call esi
push 0x401520
call esi
push 0x401514
call esi
push 0x401508
call esi
push 0x4014fc
call esi
push 0x4014f0
call esi
push 0x4014e4
call esi
push 0x12
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x40237f
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x4014d4
push ebx
mov edi, 0x401380
push edi
push 0x80000002
mov dword [ebp - 8], 1
mov dword [ebp + 8], 4
call esi
test eax, eax
je 0x402355
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x80000001
mov dword [ebp + 8], 4
call esi
cmp dword [ebp - 8], 0
je 0x402366
push 0x4019d9
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ebx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
call sub.SHDOCVW.dll_Ordinal_101
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
call fcn.00401dcb
test eax, eax
je 0x402369
push 0x401de4
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x402369