Function at 0x409118
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push ebx
push esi
mov esi, dword [0x4339ac]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0xb
push dword [esi + 0x399c]
mov dword [esi + 0x39a4], ebx
call edi
push ebx
push ebx
push 0x1009
push dword [esi + 0x399c]
call edi
lea eax, [esi + 0x454]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4263c4
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.BaseData
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409865
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x374]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
push ebx
jmp 0x409342
inc dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40932d
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40932d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PGNO
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409324
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x42c624
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409324
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DGNO
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409324
cmp dword [ebp - 0x20], 0x30
jne 0x409324
mov eax, dword [ebp - 0x16c]
and eax, 0xff00
cmp eax, 0x3000
jne 0x409324
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.TYPE
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409324
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.NAME
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409324
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.COMT
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x4091d1
mov eax, dword [esi + 0x39ac]
cmp eax, ebx
je 0x409376
push eax
mov eax, dword [0x4339ac]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
mov dword [esi + 0x39ac], ebx
je 0x40985c
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x31c
push eax
mov eax, dword [0x4339ac]
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi + 0x39ac], eax
je 0x40985c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x39a4], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409865
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x374]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40985c
mov dword [ebp - 0x18], ebx
inc dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40982c
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40982c
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x680]
push 0x42c570
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PGNO
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409823
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x42c624
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409823
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DGNO
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409823
cmp dword [ebp - 0x20], 0x30
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x24], eax
jne 0x409823
and eax, 0xff00
cmp eax, 0x3000
jne 0x409823
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.TYPE
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409823
mov eax, dword [ebp - 0x16c]
cmp eax, 3
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
jne 0x40959b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x42c56c
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x16c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.NAME
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409823
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.COMT
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4095f7
mov byte [ebp - 0x57c], bl
mov eax, dword [ebp - 0xc]
push 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x270]
push 0x4263cc
push eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1007
push dword [esi + 0x399c]
call edi
mov ecx, dword [esi + 0x39ac]
mov eax, dword [ebp - 0x18]
mov dword [eax + ecx], 0x30
lea ecx, [ebp - 0x680]
push ecx
mov ecx, dword [esi + 0x39ac]
lea eax, [eax + ecx + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x270]
push 0x4263cc
push eax
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1006
push dword [esi + 0x399c]
call edi
mov eax, dword [esi + 0x39ac]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov dword [edx + eax + 4], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x270]
push str._04X
push eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], 2
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1006
push dword [esi + 0x399c]
call edi
mov eax, dword [esi + 0x39ac]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax + 8], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
push dword [eax*4 + 0x431c28]
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], 3
push 0x42c560
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x20], ebx
je 0x409757
push str._HL_
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x270]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1006
push dword [esi + 0x399c]
call edi
mov eax, dword [esi + 0x39ac]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax + 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1006
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], 4
push dword [esi + 0x399c]
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [esi + 0x39ac]
lea eax, [ecx + eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x57c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x1006
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], 5
push dword [esi + 0x399c]
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x57c]
push eax
mov eax, dword [esi + 0x39ac]
lea eax, [ecx + eax + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [ebp - 0xc]
add dword [ebp - 0x18], 0x31c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0x104
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40941d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push dword [esi + 0x399c]
call fcn.0041d130
push ebx
push 1
push 0xb
push dword [esi + 0x399c]
call edi
push dword [esi + 0x399c]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
leave
ret