Function at 0x418430
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4455ac
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x461008]
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 ebx, ecx
mov ecx, 0x44c030
call fcn.00419e50
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x28]
push eax
push 0x20119
push 0
push 0x456494
push 0x80000002
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x41855b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
push 0
push 0
push 0x4564f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4184f8
push dword [ebp - 0x24]
call fcn.00432432
mov edi, eax
add esp, 4
test edi, edi
je 0x4184f8
lea eax, [ebp - 0x24]
push eax
push edi
push 0
push 0
push 0x4564f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4184ee
mov dword [ebp - 0x2c], edi
jmp 0x4184f8
push 0
call fcn.004323fa
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41855b
cmp word [0x463bf8], 0
jne 0x418523
push 0x463bf8
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x44bdb8
push 0x463bf8
push 0x463e00
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, 0x44b9d8
mov ecx, eax
call fcn.00415ac0
test eax, eax
je 0x418552
mov ecx, eax
call fcn.00419db0
mov dword [ebx + 0x4c], eax
push esi
call fcn.004323fa
add esp, 4
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add eax, 0xfffffe98
mov esi, dword [ebp - 0x20]
sub edi, esi
push ebx
push dword [0x4636f8]
cdq
push 0
push dword [ebx + 0x3c]
sub eax, edx
push 0x168
push edi
sar eax, 1
add eax, dword [ebp - 0x1c]
push eax
push esi
push 0xd0000000
push 0
push 0x4568b8
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [ebp - 0x20]
mov dword [ebx + 0x38], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [edi - 0x2a8]
cdq
sub eax, edx
mov edx, dword [ebp - 0x1c]
mov esi, eax
add edx, 0x14
sar esi, 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
lea ecx, [esi + 0x2a8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
add eax, edx
push eax
lea eax, [ecx - 0x21]
add eax, esi
push eax
push edx
lea eax, [esi - 0x21]
push eax
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, 0xffffff90
mov dword [ebp - 0x34], eax
add ecx, 0xffffffc7
mov eax, dword [ebp - 0x1c]
add eax, 0x30
mov dword [ebp - 0x2c], ecx
sub ecx, eax
mov dword [ebp - 0x1c], eax
push 0x3c
mov dword [ebp - 0x30], ecx
call fcn.0043198f
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4186a2
push 0x3c
push 0
push edi
call fcn.0043cf50
mov edx, dword [ebx + 0x8c]
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x30]
dec eax
mov dword [edi], vtable.MetroLabel.0
push edx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0x2a8
mov dword [edi + 0x18], eax
call fcn.004319e0
add esp, 4
mov dword [edi + 0x2c], eax
xor dl, dl
mov ecx, 0xc
push 0
call fcn.00415030
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], esi
call fcn.0041c570
jmp 0x4186a4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push 0x3c
mov dword [ebx + 0x54], edi
call fcn.0043198f
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x418732
push 0x3c
push 0
push edi
call fcn.0043cf50
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov esi, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2c]
add eax, 6
mov dword [edi], vtable.MetroLabel.0
push 0x44bba4
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x100
mov dword [edi + 0x18], 0x20
call fcn.004319e0
add esp, 4
mov dword [edi + 0x2c], eax
xor dl, dl
mov ecx, 9
push 0
call fcn.00415030
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], esi
call fcn.0041c570
jmp 0x418734
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x12d
mov dword [ebx + 0x60], edi
call fcn.00416830
push 0x44
mov dword [ebp - 0x30], eax
call fcn.0043198f
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x4187cf
push 0x44
push 0
push edi
call fcn.0043cf50
mov esi, dword [ebx + 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov dword [edi], vtable.MetroButton.0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x70
mov dword [edi + 0x18], 0x20
call fcn.004319e0
add esp, 4
mov dword [edi + 0x2c], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], esi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov byte [edi + 0x40], 0
call fcn.0041c6c0
jmp 0x4187d1
xor edi, edi
sub dword [ebp - 0x34], 0xd4
mov ecx, 0x1fe
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x58], edi
call fcn.00416830
push 0x44
mov dword [ebp - 0x30], eax
call fcn.0043198f
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 3
test edi, edi
je 0x418873
push 0x44
push 0
push edi
call fcn.0043cf50
mov esi, dword [ebx + 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov dword [edi], vtable.MetroButton.0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xc0
mov dword [edi + 0x18], 0x20
call fcn.004319e0
add esp, 4
mov dword [edi + 0x2c], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], esi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov byte [edi + 0x40], 0
call fcn.0041c6c0
jmp 0x418875
xor edi, edi
mov dword [ebx + 0x5c], edi
mov eax, dword [edi + 4]
mov byte [edi + 0x40], 1
test eax, eax
je 0x418890
push 1
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
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.0043183b
mov esp, ebp
pop ebp
ret