Function at 0x506600
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x6184d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x690
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005fc162
mov ecx, dword [eax + 4]
call fcn.005ef6c0
mov eax, dword [0x69cfe8]
mov dword [esp + 0x6a8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x6a8], 2
call fcn.00419460
mov eax, dword [0x69cfe8]
mov dword [esp + 0x24], eax
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6ac], 4
call fcn.00474480
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x94]
push 0x104
mov bl, 5
push ecx
push 0
mov byte [esp + 0x6b4], bl
call ebp
lea edx, [esp + 0x94]
lea ecx, [esp + 0x24]
push edx
call fcn.005ebb6a
lea eax, [esp + 0x94]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x14]
call fcn.005ebb6a
push 0x6723a0
lea ecx, [esp + 0x14]
call fcn.005e7fba
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push str._WindowsFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea eax, [esp + 0x94]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x14]
call fcn.005ebb6a
push 0x6723a0
lea ecx, [esp + 0x14]
call fcn.005e7fba
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x14]
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 7
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SystemFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea eax, [esp + 0x94]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x5067d8
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x14]
call fcn.005ebb6a
push 0x6723a0
lea ecx, [esp + 0x14]
call fcn.005e7fba
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 8
mov ecx, esp
mov dword [esp + 0x1c], esp
jmp 0x5067f8
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.C:Temp
call fcn.005eba4f
push ecx
mov byte [esp + 0x6b0], 9
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._TempFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.00506d00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6ac], 0xa
call fcn.005ebb1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], bl
call fcn.005eb9e1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0xb
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._DesktopFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea eax, [esp + 0x14]
push 0x19
push eax
mov ecx, esi
call fcn.00506d00
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6ac], 0xc
call fcn.005ebb1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], bl
call fcn.005eb9e1
cmp dword [esp + 0x80], 1
jne 0x5068c8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.005ebb1a
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0xd
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._DesktopFolderCommon
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea ecx, [esp + 0x2c]
call fcn.00474c50
push str.LocalMachine
lea ecx, [esp + 0x30]
call fcn.00474750
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x30]
call fcn.00474780
push str.ProgramFilesDir
lea ecx, [esp + 0x30]
call fcn.004747b0
push 0
push 0
push 0
push 0
push 0x20019
push 0
lea ecx, [esp + 0x44]
call fcn.004748c0
test eax, eax
push ecx
je 0x50698c
mov edi, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x6a1e40
call fcn.005eba4f
push 1
push 1
push 0
push edi
lea ecx, [esp + 0x44]
call fcn.00474c80
push ecx
mov byte [esp + 0x6b0], 0xe
mov ecx, esp
mov dword [esp + 0x1c], esp
jmp 0x5069ab
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.C:Program_Files
call fcn.005eba4f
push ecx
mov byte [esp + 0x6b0], 0xf
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ProgramFilesFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
mov eax, dword [esi + 4]
push ecx
add eax, 0xd0
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SourceFolder
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
mov edi, dword [eax + 0xd0]
lea ecx, [eax + 0xd0]
mov al, byte [edi]
cmp al, 0x5c
jne 0x506a73
cmp byte [edi + 1], 0x5c
jne 0x506a73
push 2
push 0x5c
call fcn.005ebedd
cmp eax, 0xffffffff
je 0x506aa1
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push eax
push edx
add ecx, 0xd0
call fcn.005e7b3e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6ac], 0x11
call fcn.005ebb1a
mov byte [esp + 0x6a8], bl
lea ecx, [esp + 0x14]
jmp 0x506a9c
lea eax, [esp + 0x14]
push 2
push eax
call fcn.005e7b3e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6ac], 0x12
call fcn.005ebb1a
mov byte [esp + 0x6a8], bl
lea ecx, [esp + 0x14]
call fcn.005eb9e1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0x13
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SourceDrive
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
lea ecx, [esp + 0x10]
call fcn.005eb96c
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SFXSOURCE
call fcn.005eba4f
lea eax, [esp + 0x18]
mov byte [esp + 0x6ac], bl
push eax
call fcn.004ddd60
mov ecx, eax
call fcn.004f9cb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6ac], 0x15
call fcn.005ebb1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], bl
call fcn.005eb9e1
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x506b5e
lea edx, [esp + 0x398]
push 0x104
push edx
push 0
call ebp
lea eax, [esp + 0x398]
lea ecx, [esp + 0x10]
push eax
call fcn.005ebb6a
lea ecx, [esp + 0x198]
lea edx, [esp + 0x298]
push ecx
lea eax, [esp + 0x4a0]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x5a4]
push eax
push ecx
push edx
call fcn.005cfbaf
add esp, 0x14
lea eax, [esp + 0x298]
lea ecx, [esp + 0x10]
push eax
call fcn.005ebb6a
lea ecx, [esp + 0x198]
push ecx
lea ecx, [esp + 0x14]
call fcn.005ebdbd
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0x16
mov ecx, esp
mov dword [esp + 0x30], esp
push str._SourceFilename
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], bl
add ecx, 0x60
call fcn.004f2290
push str.AMS50P
lea ecx, [esp + 0x24]
call fcn.005eba4f
push str.AMS70
lea ecx, [esp + 0x24]
mov byte [esp + 0x6ac], 0x17
call fcn.005ebb6a
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005eb756
push ecx
mov byte [esp + 0x6b0], 0x18
mov ecx, esp
mov dword [esp + 0x20], esp
push str._IR_ProductID
call fcn.005eba4f
mov ecx, dword [esi + 4]
mov byte [esp + 0x6b0], 0x17
add ecx, 0x60
call fcn.004f2290
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._NoExitScriptOnPageJump
call fcn.005eba4f
mov ecx, dword [esi + 4]
add ecx, 0x60
call fcn.004f2320
lea ecx, [esp + 0x20]
mov byte [esp + 0x6a8], bl
call fcn.005eb9e1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6a8], 4
call fcn.00475990
lea ecx, [esp + 0x24]
mov byte [esp + 0x6a8], 3
call fcn.005eb9e1
mov byte [esp + 0x6a8], 2
lea ecx, [esp + 0x58]
call fcn.00419680
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a8], 1
call fcn.005eb9e1
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a8], 0
call fcn.005eb9e1
mov dword [esp + 0x6a8], 0xffffffff
call fcn.005fc162
mov ecx, dword [eax + 4]
call fcn.005ef6d5
mov ecx, dword [esp + 0x6a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x69c
ret