Function at 0x4087f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x408a98
mov eax, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xc], ebx
mov edi, 0xb
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x58]
sub esp, 0x10
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x4088f8
mov dword [ebp - 0x7c], 0
xor edi, edi
xor ebx, ebx
mov dword [esp + 8], edi
xor eax, eax
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], eax
mov esi, 0xb
mov edx, dword fs:[0x18]
mov dword [ebp - 0x80], edx
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x80]
mov dword [esp + 8], ebx
mov ebx, 1
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x58]
sub esp, 0x10
test eax, eax
je 0x4088ea
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xc], ebx
mov edi, 0x1009
mov ecx, 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [0x411144], ecx
call sym._SendMessageW_16
xor eax, eax
xor edx, edx
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
mov dword [ebp - 0x7c], eax
sub esp, 0x30
test eax, eax
jne 0x408864
mov eax, dword [ebp - 0x70]
inc dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x70], eax
add eax, eax
mov dword [esp], eax
call sym._heap_xalloc
mov ebx, eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym._heap_xalloc
xor edx, edx
mov dword [esp + 4], edx
mov edi, eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], edi
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
cmp eax, 2
je 0x408b38
mov eax, dword [ebp - 0x60]
xor esi, esi
test eax, eax
je 0x408ab2
mov eax, esi
mov esi, edi
mov edi, eax
jmp 0x408a3e
mov ecx, dword [ebp - 0x64]
mov edx, 0xffffffff
mov byte [esi + ecx], 0
cmp word [ebx], 0
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x64]
mov dword [esp + 0xc], esi
cmovne eax, ebx
inc edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._AddEntryToList
cmp dword [ebp - 0x60], edi
jbe 0x408ab0
mov dword [esp + 0x18], esi
mov eax, dword [ebp - 0x70]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._RegEnumValueW_32
sub esp, 0x20
test eax, eax
je 0x408a00
mov edi, esi
jmp 0x40886f
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, esi
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x54], edx
mov dword [ebp + eax - 0x50], edx
add eax, 8
cmp eax, 0x38
jb 0x408ab6
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp + eax - 0x54], edx
test ecx, ecx
je 0x408b6c
mov eax, sym._CompareFunc_12
mov edx, 0x1030
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], 1
mov dword [0x416e28], eax
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp dword [0x416e24], eax
je 0x40886f
mov dword [esp], eax
call sym._update_listview_path
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x7c], eax
jmp 0x40886f
xor eax, eax
mov esi, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp], eax
call sym._AddEntryToList
jmp 0x4089e3
lea eax, [ebp - 0x54]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov esi, 0x102b
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [ebp - 0x44], 1
mov dword [esp], eax
mov dword [ebp - 0x48], 1
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x408ad7