Function at 0x503da0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ce3f
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x295], 0
mov byte [ebp - 0x13c], 0
push 0x103
push 0
lea eax, [ebp - 0x13b]
push eax
call fcn.00415fc0
add esp, 0xc
mov dword [ebp - 0x294], 0
cmp dword [0x55b9f4], 0
jne 0x503e19
push 0x52418c
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x5048a6
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x503e48
mov eax, 0xfffffffd
jmp 0x5048a6
push 0x5241b0
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x503e66
push str.maxthon.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x29c]
push eax
push str._DEBUGINFO__LOCK__SET_LockMsedge_url___s_n
call fcn.004e4170
add esp, 8
mov dword [ebp - 0x2a0], 0x104
push str.Maxthon.exe
lea ecx, [ebp - 0x290]
call fcn.00401e20
mov dword [ebp - 4], 0
push str.User_Data
lea ecx, [ebp - 0x2c]
call fcn.00401e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.004011e0
mov byte [ebp - 4], 2
push 0x104
push 0
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00415fc0
add esp, 0xc
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x514017
push str.ApplicationsMaxthon.exe_shellopencommand
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x50405e
lea edx, [ebp - 0x13c]
push edx
call fcn.00415e20
add esp, 4
cmp eax, 5
jb 0x50405e
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x158]
call fcn.004012a0
push 0
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00413640
cmp dword [0x528cdc], eax
je 0x50405e
push 0
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x158]
call fcn.00413640
push eax
push 0
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x158]
call fcn.00401320
mov dword [ebp - 0x618], eax
mov ecx, dword [ebp - 0x618]
mov dword [ebp - 0x61c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x61c]
push edx
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d8]
call fcn.00401260
push 0x51401e
lea ecx, [ebp - 0x4f4]
call fcn.00401e20
mov byte [ebp - 4], 4
push 0x52423c
lea ecx, [ebp - 0x510]
call fcn.00401e20
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x510]
push ecx
lea edx, [ebp - 0x158]
push edx
call fcn.004f8d60
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x510]
call fcn.00401260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f4]
call fcn.00401260
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x158]
call fcn.004013e0
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x50405e
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_Maxthon_path1___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x295], 1
movzx ecx, byte [ebp - 0x295]
test ecx, ecx
jne 0x504210
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x51401f
push str.mx_shellopencommand
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x504210
lea eax, [ebp - 0x13c]
push eax
call fcn.00415e20
add esp, 4
cmp eax, 5
jb 0x504210
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x158]
call fcn.004012a0
push 0
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x158]
call fcn.00413640
cmp dword [0x528cdc], eax
je 0x504210
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x158]
call fcn.00413640
push eax
push 0
lea ecx, [ebp - 0x52c]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00401320
mov dword [ebp - 0x620], eax
mov edx, dword [ebp - 0x620]
mov dword [ebp - 0x624], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x624]
push eax
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x52c]
call fcn.00401260
push 0x514026
lea ecx, [ebp - 0x548]
call fcn.00401e20
mov byte [ebp - 4], 7
push 0x524284
lea ecx, [ebp - 0x564]
call fcn.00401e20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x564]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.004f8d60
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x564]
call fcn.00401260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x548]
call fcn.00401260
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x158]
call fcn.004013e0
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x504210
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_Maxthon_path2___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x295], 1
movzx edx, byte [ebp - 0x295]
test edx, edx
jne 0x5043c2
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x514027
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMaxthon.exe
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x5043c2
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00415e20
add esp, 4
cmp eax, 5
jb 0x5043c2
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x158]
call fcn.004012a0
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x158]
call fcn.00413640
cmp dword [0x528cdc], eax
je 0x5043c2
push 0
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00413640
push eax
push 0
lea edx, [ebp - 0x580]
push edx
lea ecx, [ebp - 0x158]
call fcn.00401320
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x628]
mov dword [ebp - 0x62c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x580]
call fcn.00401260
push 0x51402b
lea ecx, [ebp - 0x59c]
call fcn.00401e20
mov byte [ebp - 4], 0xa
push 0x5242f8
lea ecx, [ebp - 0x5b8]
call fcn.00401e20
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x59c]
push edx
lea eax, [ebp - 0x5b8]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.004f8d60
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5b8]
call fcn.00401260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x59c]
call fcn.00401260
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x158]
call fcn.004013e0
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x5043c2
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_Maxthon_path3___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x295], 1
movzx eax, byte [ebp - 0x295]
test eax, eax
jne 0x50462e
mov byte [ebp - 0x3ac], 0
push 0x103
push 0
lea ecx, [ebp - 0x3ab]
push ecx
call fcn.00415fc0
add esp, 0xc
mov byte [ebp - 0x4b4], 0
push 0x103
push 0
lea edx, [ebp - 0x4b3]
push edx
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x504474
lea ecx, [ebp - 0x4b8]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x504460
lea edx, [ebp - 0x3ac]
push edx
mov eax, dword [ebp - 0x4b8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x4b8]
push ecx
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2a4]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2a4]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x3ac]
push ecx
lea edx, [ebp - 0x4b4]
push edx
call fcn.00415eb0
add esp, 8
push 0x524328
lea eax, [ebp - 0x4b4]
push eax
call fcn.00415ec0
add esp, 8
lea ecx, [ebp - 0x4b4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x50462e
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x4b4]
push ecx
call fcn.004f5130
add esp, 4
push eax
call fcn.004de630
add esp, 8
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x158]
call fcn.004012a0
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x158]
call fcn.00413640
cmp dword [0x528cdc], eax
je 0x50462e
push 0
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00413640
push eax
push 0
lea edx, [ebp - 0x5d4]
push edx
lea ecx, [ebp - 0x158]
call fcn.00401320
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x634], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5d4]
call fcn.00401260
push 0x51402e
lea ecx, [ebp - 0x5f0]
call fcn.00401e20
mov byte [ebp - 4], 0xd
push 0x524338
lea ecx, [ebp - 0x60c]
call fcn.00401e20
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x5f0]
push edx
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.004f8d60
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
call fcn.00401280
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x60c]
call fcn.00401260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5f0]
call fcn.00401260
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x158]
call fcn.004013e0
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x50462e
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_Maxthon_path4___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x295], 1
movzx eax, byte [ebp - 0x295]
test eax, eax
jne 0x50467b
mov dword [ebp - 0x610], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.00401260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.00401260
mov eax, dword [ebp - 0x610]
jmp 0x5048a6
push 0x104
push 0
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x158]
call fcn.004012e0
push eax
push 0x104
lea edx, [ebp - 0x13c]
push edx
call fcn.004189df
add esp, 0xc
mov byte [ebp - 0x264], 0
push 0x103
push 0
lea eax, [ebp - 0x263]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x274]
call fcn.00413270
mov byte [ebp - 4], 0xf
push 0x524368
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x274]
call fcn.004132c0
test eax, eax
jbe 0x504849
mov dword [ebp - 0x4bc], 0
jmp 0x504726
mov eax, dword [ebp - 0x4bc]
add eax, 1
mov dword [ebp - 0x4bc], eax
lea ecx, [ebp - 0x274]
call fcn.004132c0
cmp dword [ebp - 0x4bc], eax
jae 0x504849
mov ecx, dword [ebp - 0x4bc]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x504844
push 0x104
push 0
lea edx, [ebp - 0x264]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x274]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x264]
push ecx
call fcn.004188fa
add esp, 0xc
push 0x524374
push 0x104
lea edx, [ebp - 0x264]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00503850
add esp, 8
mov dword [ebp - 0x294], eax
push 0x104
push 0
lea edx, [ebp - 0x264]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x274]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x264]
push ecx
call fcn.004188fa
add esp, 0xc
push str.Secure_Preferences
push 0x104
lea edx, [ebp - 0x264]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.005031a0
add esp, 8
mov dword [ebp - 0x294], eax
jmp 0x504717
mov edx, dword [ebp - 0x29c]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x614], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.004132a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.00401260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.00401260
mov eax, dword [ebp - 0x614]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4