Function at 0x460800
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496b6a
mov eax, dword fs:[0]
push eax
sub esp, 0x6cc
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a8], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00472990
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp + 8]
call fcn.00453990
push eax
call fcn.0040ad00
add esp, 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x21c]
push eax
call fcn.00401c70
mov dword [ebp - 0x6ac], eax
lea ecx, [ebp - 0x648]
call fcn.00469c40
mov dword [ebp - 0x6b0], eax
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x690], esp
push 0x4a65a0
call fcn.00401c70
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x6b4]
mov dword [ebp - 0x6b8], ecx
mov byte [ebp - 4], 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x694], esp
push 0x4a65a4
call fcn.00401c70
mov dword [ebp - 0x6bc], eax
lea edx, [ebp - 0x688]
push edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x648]
call fcn.00469fb0
mov dword [ebp - 0x6c0], eax
mov byte [ebp - 4], 3
push str.SMain.exe
push 0x4a65c8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x698]
push ecx
call fcn.0042f3f0
mov dword [ebp - 0x6c4], eax
mov edx, dword [ebp - 0x6c4]
mov dword [ebp - 0x6c8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0x69c]
push ecx
call fcn.0042f3f0
mov dword [ebp - 0x6cc], eax
mov edx, dword [ebp - 0x6cc]
mov dword [ebp - 0x6d0], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6d0]
call fcn.00453990
push eax
lea ecx, [ebp - 0x668]
call fcn.00401c70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x69c]
call fcn.0042ed20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x698]
call fcn.0042ed20
lea ecx, [ebp - 0x669]
call fcn.004281d0
mov byte [ebp - 4], 9
push 0
push 0
lea ecx, [ebp - 0x688]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x668]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x669]
call fcn.004284c0
push 0
push 0
lea ecx, [ebp - 0x688]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x688]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x668]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x669]
call fcn.00428780
push 0
push 0x4a65cc
push str.1042
call fcn.00429fc0
add esp, 4
push eax
lea ecx, [ebp - 0x688]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x668]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x669]
call fcn.00428780
push 0x4a65f0
push 0x4a6608
push 0x4c36a0
lea eax, [ebp - 0x6a0]
push eax
call fcn.0042f3f0
mov dword [ebp - 0x6d4], eax
mov ecx, dword [ebp - 0x6d4]
mov dword [ebp - 0x6d8], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x6d8]
push edx
lea eax, [ebp - 0x64c]
push eax
call fcn.0042f3f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x6a0]
call fcn.0042ed20
xor ecx, ecx
mov word [ebp - 0x62c], cx
push 0x206
push 0
lea edx, [ebp - 0x62a]
push edx
call fcn.00472990
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x64c]
call fcn.00453990
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 0x4a660c
push 0x4a663c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edx, edx
mov word [ebp - 0x424], dx
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.00472990
add esp, 0xc
push 0
push 2
lea ecx, [ebp - 0x424]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x64c]
call fcn.00453990
push eax
lea edx, [ebp - 0x424]
push edx
push 0x4a664c
push 0x4a666c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x6a4], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64c]
call fcn.0042ed20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x669]
call fcn.004281f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x668]
call fcn.00401ce0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.00401ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x648]
call fcn.00469cb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042ed20
mov eax, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4