Function at 0x420090
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x80]
sub esp, 0x80
push 0xffffffffffffffff
push 0x4d9a7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x90]
mov ebx, dword [ebp + 0x8c]
mov edi, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x98]
mov dword [ebp - 0x10], ebx
cmp eax, 0x4e
ja 0x42017c
je 0x420144
cmp eax, 5
je 0x42012a
cmp eax, 0x10
je 0x420113
cmp eax, 0x24
jne 0x420580
mov eax, dword [edi + 0x13c]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x140]
mov dword [ecx + 0x1c], eax
jmp 0x420580
call fcn.00491660
push dword [edi + 0x120]
mov ecx, eax
call fcn.00491cb0
jmp 0x420580
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
lea ecx, [edi + 0x124]
push eax
call fcn.00406ca0
jmp 0x420580
cmp dword [ebp + 0x94], 0x3fe
jne 0x420580
cmp dword [ecx + 8], 0xfffffffd
jne 0x420580
mov ecx, edi
call fcn.004214b0
push 0
push 0
push 0x8014
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x420580
sub eax, 0x7b
je 0x42049a
sub eax, 0x95
je 0x4201aa
sub eax, 1
jne 0x420580
movzx eax, word [ebp + 0x94]
push ecx
push eax
mov ecx, edi
call fcn.004205b0
jmp 0x420582
call fcn.00491660
lea ecx, [ebp]
mov dword [ebp], vtable.std::_Func_impl_no_alloc_class__protected_virtual:_long_int___stdcall_CBookmarksDlg::DlgFunc_struct_HWND_____unsigned_int__unsigned_int__long_int_::_5::_lambda_1___void___.0
mov dword [ebp + 4], edi
mov dword [ebp + 0x24], ecx
push ecx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00491c70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x24]
mov dword [edi + 0x120], eax
test ecx, ecx
je 0x4201f3
mov edx, dword [ecx]
lea eax, [ebp]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
call fcn.00491660
mov esi, eax
call fcn.00491660
mov cl, byte [eax + 1]
push ecx
push dword [edi + 8]
mov ecx, esi
call fcn.00491e90
call fcn.00491660
call fcn.00491660
mov esi, dword [eax + 0xd0]
call fcn.00491660
push esi
add eax, 0x90
push eax
push dword [edi + 8]
call fcn.00491de0
push ecx
push 0x6b
push ebx
mov ecx, edi
call fcn.00402ac0
call fcn.00411ad0
push dword [edi + 8]
mov ecx, eax
call fcn.00410960
mov ecx, edi
call fcn.00420de0
push ebx
lea ecx, [edi + 0x124]
call fcn.00406a90
call fcn.00491660
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov cl, byte [eax + 1]
test cl, cl
sete al
mov byte [edi + 0x160], al
xor eax, eax
test cl, cl
setne al
dec eax
and eax, 5
push eax
push dword [edi + 0x15c]
call ebx
push 2
push 0x420
push dword [ebp - 0x10]
lea ecx, [edi + 0x124]
call fcn.00406bc0
push 3
push 0x3fe
push dword [ebp - 0x10]
lea ecx, [edi + 0x124]
call fcn.00406bc0
push 5
push 1
push dword [ebp - 0x10]
lea ecx, [edi + 0x124]
call fcn.00406bc0
push 5
push 2
push dword [ebp - 0x10]
lea ecx, [edi + 0x124]
call fcn.00406bc0
push 0x2c
lea eax, [ebp + 0x28]
push 0
push eax
call fcn.004affe0
add esp, 0xc
mov dword [ebp - 0x1c], 0x2c
cmp byte [0x507a10], 0
je 0x420450
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.global
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
mov ecx, 0x507a48
mov dword [ebp - 0x10], 0
call fcn.00418210
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004182a0
test al, al
mov eax, dword [0x507a48]
jne 0x42033c
mov esi, eax
cmp esi, eax
jne 0x420347
mov edx, 0x4eb5ac
jmp 0x420375
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4ec428
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00417f90
mov edx, 0x4eb5ac
cmp eax, dword [esi + 0x1c]
je 0x420375
mov edx, dword [eax + 0x1c]
xor eax, eax
mov ecx, edx
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
lea esi, [ecx + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420390
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x64]
call fcn.00403450
cmp dword [ebp + 0x74], 0
je 0x420437
cmp dword [ebp + 0x78], 7
lea eax, [ebp + 0x64]
jbe 0x4203bf
mov eax, dword [ebp + 0x64]
lea ecx, [ebp + 0x50]
push ecx
lea ecx, [ebp + 0x4c]
push ecx
lea ecx, [ebp + 0x48]
push ecx
lea ecx, [ebp + 0x44]
push ecx
lea ecx, [ebp + 0x40]
push ecx
lea ecx, [ebp + 0x3c]
push ecx
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x34]
push ecx
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push str._d__d__d__d__d__d__d__d__d__d
push eax
call fcn.00422270
mov ecx, dword [ebp - 0x1c]
add esp, 0x30
mov dword [ebp + 0x28], ecx
mov ecx, dword [edi + 8]
cmp eax, 0xa
jne 0x420420
lea eax, [ebp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
lea ecx, [ebp + 0x64]
call fcn.004027a0
mov eax, 1
jmp 0x420582
push 5
push ecx
call ebx
lea ecx, [ebp + 0x64]
call fcn.004027a0
mov eax, 1
jmp 0x420582
push 5
push dword [edi + 8]
call ebx
lea ecx, [ebp + 0x64]
call fcn.004027a0
mov eax, 1
jmp 0x420582
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x28]
push eax
push 0
push 0x4ec428
push str.SoftwaregrepWinNP3
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [edi + 8]
test eax, eax
jne 0x42048b
lea eax, [ebp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov eax, 1
jmp 0x420582
push 5
push ecx
call ebx
mov eax, 1
jmp 0x420582
movsx eax, cx
push 0x3fe
push dword [edi + 8]
shr ecx, 0x10
mov dword [ebp - 0x1c], eax
movsx ebx, cx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
cmp dword [ebp + 0x94], esi
jne 0x420580
push 0
push 0
push 0x1004
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x420580
push 0
push 0
push 0x1042
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
test ecx, ecx
js 0x420580
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
cmp eax, 0xffffffff
jne 0x420545
cmp ebx, eax
jne 0x420545
lea eax, [ebp + 0x54]
mov dword [ebp + 0x54], 2
push eax
push ecx
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x54]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x60]
sub eax, dword [ebp + 0x58]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0x85
push dword [edi + 4]
call dword [sym.imp.USER32.dll_LoadMenuW]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
call fcn.00411ad0
push esi
mov ecx, eax
call fcn.004109c0
mov eax, dword [ebp - 0x1c]
push 0
push dword [edi + 8]
push 0
push ebx
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7c]
xor ecx, ebp
call fcn.004accbf
lea esp, [ebp + 0x80]
pop ebp
ret 0x14