Function at 0x409810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x48]
push eax
push 0x478818
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x18], 4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x47883c
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0x478840
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x478844
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x478848
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], 0xffffffff
je 0x4098db
cmp dword [ebp - 0xc], 0xffffffff
je 0x4098db
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x1036
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x24], 0
jmp 0x409904
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
jge 0x40999c
mov dword [ebp - 0x68], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 6
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x47884c
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x18], 4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x101b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4098fb
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
push 0x1e
push 0xa
push 0xfe
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x8020
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x10
push 0x10
push 1
push 0x14b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x10
push 0x10
push 1
push 0x14a
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov edx, dword [ebp - 0x20]
push edx
push 1
push 0x1003
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov esp, ebp
pop ebp
ret