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

Disassembly:
push 0xffffffffffffffff
push 0x5b3d83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0059f9bd
mov ecx, dword [eax + 4]
call fcn.0059323d
mov eax, dword [0x628100]
mov dword [esp + 0x6a0], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x6a0], 2
call fcn.00417c50
mov eax, dword [0x628100]
mov dword [esp + 0x20], eax
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6a4], 4
call fcn.0044a620
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x8c]
push 0x104
mov bl, 5
push ecx
push 0
mov byte [esp + 0x6ac], bl
call ebp
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x20]
push edx
call fcn.0058f868
lea eax, [esp + 0x8c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0058f868
push 0x600360
lea ecx, [esp + 0x14]
call fcn.0058c6e1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push str._WindowsFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea eax, [esp + 0x8c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0058f868
push 0x600360
lea ecx, [esp + 0x14]
call fcn.0058c6e1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x14]
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 7
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SystemFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea eax, [esp + 0x8c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4b0fd1
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0058f868
push 0x600360
lea ecx, [esp + 0x14]
call fcn.0058c6e1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
mov byte [esp + 0x6a4], 8
jmp 0x4b0fea
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.C:Temp
call fcn.0058f74d
mov byte [esp + 0x6a4], 9
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
push str._TempFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.004b14d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a4], 0xa
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a0], bl
call fcn.0058f6df
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0xb
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._DesktopFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea eax, [esp + 0x14]
push 0x19
push eax
mov ecx, esi
call fcn.004b14d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6a4], 0xc
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a0], bl
call fcn.0058f6df
cmp dword [esp + 0x78], 1
jne 0x4b10be
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.0058f818
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0xd
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._DesktopFolderCommon
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea ecx, [esp + 0x2c]
call fcn.0044ae00
push str.LocalMachine
lea ecx, [esp + 0x30]
call fcn.0044a8f0
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x30]
call fcn.0044a920
push str.ProgramFilesDir
lea ecx, [esp + 0x30]
call fcn.0044a950
push 0
push 0
push 0
push 0
push 0x20019
push 0
lea ecx, [esp + 0x44]
call fcn.0044aa60
push ecx
test eax, eax
mov dword [esp + 0x1c], esp
je 0x4b117b
mov edi, esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x62cce0
call fcn.0058f74d
push 1
push 1
push 0
push edi
lea ecx, [esp + 0x44]
call fcn.0044ae30
mov byte [esp + 0x6a4], 0xe
jmp 0x4b118f
mov ecx, esp
push str.C:Program_Files
call fcn.0058f74d
mov byte [esp + 0x6a4], 0xf
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
push str._ProgramFilesFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
mov eax, dword [esi + 4]
push ecx
add eax, 0xcc
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SourceFolder
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
mov edi, dword [eax + 0xcc]
lea ecx, [eax + 0xcc]
mov al, byte [edi]
cmp al, 0x5c
jne 0x4b1249
cmp byte [edi + 1], 0x5c
jne 0x4b1249
push 2
push 0x5c
call fcn.0058fbb4
cmp eax, 0xffffffff
je 0x4b1277
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push eax
push edx
add ecx, 0xcc
call fcn.0058c2ae
mov byte [esp + 0x6a0], 0x11
jmp 0x4b125d
lea eax, [esp + 0x14]
push 2
push eax
call fcn.0058c2ae
mov byte [esp + 0x6a0], 0x12
lea ecx, [esp + 0x10]
push eax
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a0], bl
call fcn.0058f6df
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0x13
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SourceDrive
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
lea ecx, [esp + 0x10]
call fcn.0058f66a
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SFXSOURCE
call fcn.0058f74d
lea eax, [esp + 0x18]
mov byte [esp + 0x6a4], bl
push eax
call fcn.00475910
mov ecx, eax
call fcn.004a5f80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a4], 0x15
call fcn.0058f818
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a0], bl
call fcn.0058f6df
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4b1334
lea edx, [esp + 0x390]
push 0x104
push edx
push 0
call ebp
lea eax, [esp + 0x390]
lea ecx, [esp + 0x10]
push eax
call fcn.0058f868
lea ecx, [esp + 0x190]
lea edx, [esp + 0x290]
push ecx
lea eax, [esp + 0x498]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x59c]
push eax
push ecx
push edx
call fcn.005747ff
add esp, 0x14
lea eax, [esp + 0x290]
lea ecx, [esp + 0x10]
push eax
call fcn.0058f868
lea ecx, [esp + 0x190]
push ecx
lea ecx, [esp + 0x14]
call fcn.0058fabb
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0x16
mov ecx, esp
mov dword [esp + 0x30], esp
push str._SourceFilename
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], bl
add ecx, 0x60
call fcn.0049f1a0
push str.AMS50P
lea ecx, [esp + 0x28]
call fcn.0058f74d
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x6a8], 0x17
call fcn.0058f454
push ecx
mov byte [esp + 0x6a8], 0x18
mov ecx, esp
mov dword [esp + 0x20], esp
push str._IR_ProductID
call fcn.0058f74d
mov ecx, dword [esi + 4]
mov byte [esp + 0x6a8], 0x17
add ecx, 0x60
call fcn.0049f1a0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str._NoExitScriptOnPageJump
call fcn.0058f74d
mov ecx, dword [esi + 4]
add ecx, 0x60
call fcn.0049f230
lea ecx, [esp + 0x24]
mov byte [esp + 0x6a0], bl
call fcn.0058f6df
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6a0], 4
call fcn.0044bb60
lea ecx, [esp + 0x20]
mov byte [esp + 0x6a0], 3
call fcn.0058f6df
lea ecx, [esp + 0x58]
mov byte [esp + 0x6a0], 2
call fcn.00417df0
mov byte [esp + 0x6a0], 1
lea ecx, [esp + 0x1c]
call fcn.0058f6df
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a0], 0
call fcn.0058f6df
mov dword [esp + 0x6a0], 0xffffffff
call fcn.0059f9bd
mov ecx, dword [eax + 4]
call fcn.00593252
mov ecx, dword [esp + 0x698]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x694
ret