Function at 0x486990
Capabilities:
Inspect load icon resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8785
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
lea ecx, [edi + 0x24]
push 1
call fcn.00456980
push 1
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x65
call fcn.0046a0d0
add esp, 0xc
push eax
push 1
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4ed41c
push dword [0x52e3b0]
push dword [edi + 4]
call fcn.00490ba0
add esp, 0xc
push 0x4e454c
push 0x42f
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x65
push dword [0x52f1b0]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
mov ecx, 0x52dc90
call fcn.004386b0
mov edx, edi
lea ecx, [edi + 0x20]
neg edx
mov esi, eax
sbb edx, edx
and edx, ecx
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], edx
cmp ebx, ecx
jne 0x486aa5
mov eax, dword [esi + 4]
lea edx, [ebp - 0x1c]
cmp edx, eax
jb 0x486a72
lea eax, [eax + ecx*4]
cmp edx, eax
jb 0x486d25
test ecx, ecx
jne 0x486a7b
lea ebx, [ecx + 1]
jmp 0x486a87
add ebx, ebx
js 0x486ab7
cmp ebx, 0x1fffffff
ja 0x486ab7
push 4
lfence
push ebx
push dword [esi + 4]
call fcn.004ba08d
add esp, 0xc
test eax, eax
je 0x486ab7
mov edx, dword [ebp - 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
test eax, eax
je 0x486ab4
mov dword [eax], edx
inc dword [esi + 8]
push 0x414
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00475430
add esp, 4
push 0x414
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00477060
add esp, 4
mov dword [edi + 0x4c], eax
mov esi, dword [0x5174b0]
mov ecx, eax
call fcn.00452c60
push 0
push esi
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x4c]
call fcn.004779d0
push 0x32
push 3
push 0x403
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x4c]
call fcn.004779d0
push 0xf4240
push 2
push 0x403
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
push 1
push 0xff
push esi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 5
mov esi, eax
call fcn.00413540
add esp, 4
push eax
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0x77
push dword [0x52e7d8]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 1
push eax
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_SetOverlayImage]
mov ecx, dword [edi + 0x4c]
push 0
push esi
call fcn.0047a800
mov dword [ebp - 0x28], 0
mov ecx, 0x52e804
mov dword [ebp - 4], 0
call fcn.004a2a40
test eax, eax
je 0x486c0f
push 0x4f5c7c
call fcn.004a27e0
push eax
push 0x4f5c7c
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x20], eax
push 0x52e804
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.004a24b0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004a2380
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x486c09
call fcn.004a2a20
mov byte [ebp - 4], 4
jmp 0x486c44
push 0x4f5c9c
call fcn.004a27e0
push eax
push 0x4f5c9c
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004a2380
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x486c50
call fcn.004a2a20
mov ecx, dword [edi + 0x4c]
push 9
push 0x4f5ba8
mov byte [ebp - 4], 0
call fcn.00478300
mov ecx, dword [edi + 0x4c]
push 0x4f5ab8
push dword [0x52e3b0]
call fcn.0047a4a0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x11], 0
push eax
lea eax, [ebp - 0x11]
mov byte [ebp - 0x12], 0
push eax
push 0
push 0
push 0x4f5ae0
push dword [0x52e3b0]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4f5b18
push dword [0x52e3b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
cmp byte [ebp - 0x11], al
setne al
push eax
push 0x44b
push dword [edi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp byte [ebp - 0x12], al
sete al
push eax
push 0x44c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push 0x44b
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b680
int3