Function at 0x505900
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57832d
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
mov eax, dword [ebp - 0x42c]
add eax, 0x125c
push eax
lea ecx, [ebp - 0x430]
call fcn.004fe220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.004ff450
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5059d7
lea ecx, [ebp - 0x430]
call fcn.004ff450
push eax
push 0x104
lea ecx, [ebp - 0x428]
push ecx
call fcn.0041f950
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x42c]
add eax, 0x81f0
push eax
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x430]
call fcn.004ff450
push eax
call fcn.00412060
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x430]
call fcn.004fefd0
mov dword [ebp - 0x460], 0
xor ecx, ecx
mov dword [ebp - 0x45c], ecx
lea edx, [ebp - 0x460]
push edx
lea ecx, [ebp - 0x430]
call fcn.004ff450
push eax
call fcn.0041b5c0
add esp, 8
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x448], ecx
push str.ck_W
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x44c]
push eax
push 9
mov ecx, dword [ebp - 0x42c]
call fcn.00505550
mov ecx, dword [ebp - 0x42c]
call fcn.00505520
test eax, eax
je 0x505e49
mov ecx, dword [ebp - 0x42c]
cmp dword [ecx + 0x8df8], 3
jne 0x505d2c
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0053e230
add esp, 0xc
call fcn.00418a50
movzx ecx, al
cmp ecx, 2
jl 0x505aa5
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x505abd
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.hao123JuziBrowser
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.004fe220
mov byte [ebp - 4], 1
push str.hao123Juzi.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x454]
call fcn.004fe220
mov byte [ebp - 4], 2
push str.Installerie.ico
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x458]
push eax
call fcn.00508490
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x440]
call fcn.004ff450
push eax
lea ecx, [ebp - 0x430]
call fcn.004ff450
push eax
call fcn.00413df0
add esp, 8
mov ecx, dword [ebp - 0x42c]
add ecx, 0x67f0
push ecx
lea ecx, [ebp - 0x434]
call fcn.004fe220
mov byte [ebp - 4], 4
push 0x57f194
push 0x599894
lea ecx, [ebp - 0x434]
call fcn.00508730
lea ecx, [ebp - 0x43c]
call fcn.004fe300
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x434]
push edx
push str.__class12___procid90682043_o2_hao____param_s
lea eax, [ebp - 0x43c]
push eax
call fcn.005003f0
add esp, 0xc
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x444], edx
cmp dword [ebp - 0x444], 0x20a
jae 0x505bc3
jmp 0x505bc8
call fcn.0053d15f
xor eax, eax
mov ecx, dword [ebp - 0x444]
mov word [ebp + ecx - 0x21c], ax
push 0
push 0x10
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.004fe220
mov byte [ebp - 4], 6
push 0x57f200
lea ecx, [ebp - 0x434]
push ecx
push 0x596378
lea edx, [ebp - 0x468]
push edx
call fcn.004ff640
add esp, 0xc
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x470]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.00508490
add esp, 0xc
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x438]
call fcn.005085b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x46c]
call fcn.004feb20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x468]
call fcn.004feb20
lea ecx, [ebp - 0x458]
call fcn.004ff450
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x43c]
call fcn.004ff450
push eax
lea ecx, [ebp - 0x438]
call fcn.004ff450
push eax
lea ecx, [ebp - 0x454]
call fcn.004ff450
push eax
call fcn.00412950
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.004feb20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.004feb20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x434]
call fcn.004feb20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x458]
call fcn.004feb20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.004feb20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.004feb20
jmp 0x505e29
push ecx
mov ecx, esp
mov dword [ebp - 0x48c], esp
lea edx, [ebp - 0x430]
push edx
call fcn.004fe0e0
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x450]
push ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x42c]
call fcn.00505e90
mov dword [ebp - 0x484], eax
mov byte [ebp - 4], 0xa
push 0x3c
push 0
lea edx, [ebp - 0x4c8]
push edx
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x4c8], 0x3c
mov dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x450]
call fcn.004ff450
mov dword [ebp - 0x4bc], eax
lea ecx, [ebp - 0x430]
call fcn.004ff450
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x42c]
add eax, 0x85f0
push eax
call fcn.0053ea71
add esp, 4
test eax, eax
jbe 0x505dea
mov ecx, dword [ebp - 0x42c]
add ecx, 0x85f0
mov dword [ebp - 0x4b4], ecx
mov dword [ebp - 0x4ac], 1
mov dword [ebp - 0x4c4], 0x40
lea edx, [ebp - 0x4c8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.004feb20
push 0x57f140
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x44c]
push edx
push 0x10
mov ecx, dword [ebp - 0x42c]
call fcn.00505550
mov dword [ebp - 0x474], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.004feb20
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret