Function at 0x405780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449486
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x47bd14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x314], ecx
push 0
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.004040b0
mov eax, dword [0x47ca38]
mov dword [ebp - 0x328], eax
push 0
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0x32c], eax
mov edx, dword [ebp - 0x32c]
push edx
push 1
push 0x80
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x47ca38]
mov dword [ebp - 0x330], edx
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
push ecx
push 0
push 0x80
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x318], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0x33c], ecx
mov edx, dword [ebp - 0x33c]
push edx
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x405913
mov eax, dword [0x47ca38]
mov dword [ebp - 0x340], eax
push 0xff
lea ecx, [ebp - 0x110]
push ecx
push 0x7d2
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jle 0x405913
push 0
push 0
push 0x800
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [ebp - 0x110]
push ecx
push 0x10
push 0
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x318], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x47c9d4
call fcn.00404c80
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x314], 0
je 0x40595a
mov ecx, dword [ebp - 0x314]
add ecx, 0x20
mov dword [ebp - 0x320], ecx
jmp 0x405964
mov dword [ebp - 0x320], 0
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x344], edx
lea eax, [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x348]
add ecx, 4
call fcn.00402060
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0
mov byte [ebp - 4], 1
push 0x20019
push str.SoftwareMicrosoftATLSamplesGUIDGEN
push 0x80000001
lea ecx, [ebp - 0x368]
call fcn.00405d10
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x405a5f
xor ecx, ecx
jne 0x4059d4
mov dword [ebp - 0x34c], 4
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x350]
push ecx
push 0
push str.GUID_Type
mov edx, dword [ebp - 0x368]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x405a28
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x31c], eax
jmp 0x405a47
cmp dword [ebp - 0x350], 4
je 0x405a3d
mov dword [ebp - 0x31c], 0xd
jmp 0x405a47
mov dword [ebp - 0x31c], 0
cmp dword [ebp - 0x31c], 0
jne 0x405a5f
mov ecx, dword [ebp - 0x314]
mov edx, dword [ebp - 0x354]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x24]
add ecx, 0x3e8
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x358]
push edx
push 0x3eb
push 0x3e8
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov ecx, dword [ebp - 0x314]
call fcn.004051a0
test eax, eax
jne 0x405abc
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 3
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x310]
push ecx
mov ecx, dword [ebp - 0x314]
call fcn.00404a00
lea edx, [ebp - 0x310]
push edx
push 0x3ec
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp - 0x35c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x368]
call fcn.00401d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x318]
call fcn.00401b90
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d9dd
mov esp, ebp
pop ebp
ret 0x10