Function at 0x4019c0
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4f0cbb
push eax
mov eax, 0x127c
mov dword fs:[0], esp
call fcn.00432900
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor eax, eax
xor ebx, ebx
mov ecx, 0x80
lea edi, [esp + 0x48c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x118]
mov dword [esp + 0x474], ebx
mov dword [esp + 0x488], ebx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x484], ebx
mov byte [esp + 0x478], 1
call fcn.0040e330
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov dword [esp + 0x1298], ebx
mov byte [esp + 0x1b], bl
call fcn.00402f70
mov edi, str.Windows_XP
lea esi, [esp + 0x18]
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401a7e
mov edi, str.Windows_NT
lea esi, [esp + 0x18]
mov ecx, 0xb
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401a7e
mov edi, str.Windows_2000
lea esi, [esp + 0x18]
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401bef
mov ecx, ebp
call fcn.00403100
test al, al
jne 0x401bef
push 1
push 5
lea eax, [esp + 0x20]
push eax
push ebx
mov byte [esp + 0x27], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x401bef
push str.GTR_
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x17c]
push str._s_s
push edx
call fcn.004326d1
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004344f7
add esp, 0x18
cmp eax, 0xffffffff
jne 0x401ba9
or ecx, eax
xor eax, eax
xor esi, esi
lea edi, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x401b3c
cmp esi, 0x400
jae 0x401b3c
cmp byte [esp + esi + 0x174], 0x5c
jne 0x401b37
push esi
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x694]
push edx
call fcn.00432800
lea eax, [esp + 0x698]
push eax
mov byte [esp + esi + 0x69c], bl
call fcn.004effcc
add esp, 0x10
inc esi
cmp esi, edi
jl 0x401af8
lea ecx, [esp + 0x174]
push ecx
call fcn.004effcc
add esp, 4
lea edx, [esp + 0x174]
push edx
lea ecx, [ebp + 0xa8]
call fcn.0040d790
push str.Config.ini
push str.GTR_
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x180]
push str._s_s_s
push ecx
call fcn.004326d1
add esp, 0x14
lea edx, [esp + 0x174]
push edx
mov ecx, ebp
call fcn.0040d790
push 1
lea eax, [esp + 0x178]
push eax
push str.Config.ini
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401bef
lea ecx, [esp + 0x174]
push ecx
lea ecx, [ebp + 0xa8]
call fcn.0040d790
push str.Config.ini
push str.GTR_
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x180]
push str._s_s_s
push eax
call fcn.004326d1
add esp, 0x14
lea ecx, [esp + 0x174]
push ecx
mov ecx, ebp
call fcn.0040d790
mov esi, dword [esp + 0x129c]
cmp esi, ebx
jne 0x401c06
mov esi, dword [ebp]
cmp esi, ebx
jne 0x401c06
mov esi, 0x51ef98
push 1
push esi
lea ecx, [esp + 0x120]
call fcn.0040e8a0
test al, al
jne 0x401c6d
push esi
mov ecx, ebp
call fcn.00402790
cmp al, bl
lea ecx, [esp + 0x118]
jne 0x401c43
mov dword [esp + 0x1294], 0xffffffff
call fcn.0040e390
xor al, al
jmp 0x40276d
push 1
push esi
call fcn.0040e8a0
test al, al
jne 0x401c6d
lea ecx, [esp + 0x118]
mov dword [esp + 0x1294], 0xffffffff
call fcn.0040e390
xor al, al
jmp 0x40276d
push 0x100
lea edx, [esp + 0x490]
push edx
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
je 0x402737
mov edi, edi
lea ecx, [esp + 0x274]
call fcn.0040edf0
test eax, eax
jne 0x402716
lea eax, [esp + 0x48c]
push str._COMPONENTS_
push eax
call fcn.00432780
add esp, 8
test eax, eax
lea ecx, [esp + 0x48c]
je 0x4025af
push 0x100
push ecx
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
je 0x402716
lea ecx, [esp + 0x274]
call fcn.0040edf0
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x402580
lea edx, [esp + 0x18]
push edx
push str.SEASONDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401d25
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401550
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.SOUNDDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401d50
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00401570
jmp 0x402589
lea eax, [esp + 0x18]
push eax
push str.VEHICLESOUND
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401d7b
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401590
jmp 0x402589
lea edx, [esp + 0x18]
push edx
push str.OPTIONSANIM
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401da6
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004015b0
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.OPTIONSFLAGS
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401dd1
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.004015d0
jmp 0x402589
lea eax, [esp + 0x18]
push eax
push str.OPTIONSSOUNDS
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401dfc
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004015f0
jmp 0x402589
lea edx, [esp + 0x18]
push edx
push str.OPTIONSDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401e27
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401610
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.MOVIEDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401e52
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00401650
jmp 0x402589
lea eax, [esp + 0x18]
push eax
push str.TRACKSDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401e7d
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401670
jmp 0x402589
lea edx, [esp + 0x18]
push edx
push str.PITSDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401ea8
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401690
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.VEHICLESDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401ed3
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.004016b0
jmp 0x402589
lea eax, [esp + 0x18]
push eax
push str.DRIVERSDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401efe
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004016d0
jmp 0x402589
lea edx, [esp + 0x18]
push edx
push str.MUSICDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x401f29
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401740
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.REPLAYDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x40204d
cmp byte [esp + 0x17], bl
je 0x40203c
mov eax, dword [ebp + 0x40]
cmp eax, ebx
mov ecx, eax
jne 0x401f5f
mov ecx, 0x51ef98
mov eax, dword [ebp + 0xa8]
cmp eax, ebx
jne 0x401f6e
mov eax, 0x51ef98
push ecx
push eax
lea edx, [esp + 0x17c]
push 0x50d19c
push edx
call fcn.004326d1
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004344f7
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40203c
or ecx, eax
xor eax, eax
xor esi, esi
lea edi, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x401ff8
cmp esi, 0x400
jae 0x401ff8
cmp byte [esp + esi + 0x174], 0x5c
jne 0x401ff3
push esi
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x694]
push edx
call fcn.00432800
lea eax, [esp + 0x698]
push eax
mov byte [esp + esi + 0x69c], bl
call fcn.004effcc
add esp, 0x10
inc esi
cmp esi, edi
jl 0x401fb4
lea ecx, [esp + 0x174]
push ecx
call fcn.004effcc
mov eax, dword [ebp + 0x40]
add esp, 4
cmp eax, ebx
jne 0x402014
mov eax, 0x51ef98
lea edx, [esp + 0x174]
mov ecx, eax
call fcn.004017c0
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x1c]
push 0x50d2f0
push eax
call fcn.004326d1
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401630
jmp 0x402589
lea edx, [esp + 0x18]
push edx
push str.LOGDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x402171
cmp byte [esp + 0x17], bl
je 0x402160
mov eax, dword [ebp + 0x70]
cmp eax, ebx
mov ecx, eax
jne 0x402083
mov ecx, 0x51ef98
mov eax, dword [ebp + 0xa8]
cmp eax, ebx
jne 0x402092
mov eax, 0x51ef98
push ecx
push eax
lea eax, [esp + 0x17c]
push 0x50d19c
push eax
call fcn.004326d1
lea ecx, [esp + 0x184]
push ebx
push ecx
call fcn.004344f7
add esp, 0x18
cmp eax, 0xffffffff
jne 0x402160
or ecx, eax
xor eax, eax
xor esi, esi
lea edi, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x40211c
cmp esi, 0x400
jae 0x40211c
cmp byte [esp + esi + 0x174], 0x5c
jne 0x402117
push esi
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0xa94]
push eax
call fcn.00432800
lea ecx, [esp + 0xa98]
push ecx
mov byte [esp + esi + 0xa9c], bl
call fcn.004effcc
add esp, 0x10
inc esi
cmp esi, edi
jl 0x4020d8
lea edx, [esp + 0x174]
push edx
call fcn.004effcc
mov eax, dword [ebp + 0x70]
add esp, 4
cmp eax, ebx
jne 0x402138
mov eax, 0x51ef98
lea edx, [esp + 0x174]
mov ecx, eax
call fcn.004017c0
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x1c]
push 0x50d2f0
push ecx
call fcn.004326d1
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00401700
jmp 0x402589
lea eax, [esp + 0x18]
push eax
push str.SAVEDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x402299
cmp byte [esp + 0x17], bl
je 0x402288
mov eax, dword [ebp + 0x78]
cmp eax, ebx
mov ecx, eax
jne 0x4021a7
mov ecx, 0x51ef98
mov eax, dword [ebp + 0xa8]
cmp eax, ebx
jne 0x4021b6
mov eax, 0x51ef98
push ecx
push eax
lea ecx, [esp + 0x17c]
push 0x50d19c
push ecx
call fcn.004326d1
lea edx, [esp + 0x184]
push ebx
push edx
call fcn.004344f7
add esp, 0x18
cmp eax, 0xffffffff
jne 0x402288
or ecx, eax
xor eax, eax
xor esi, esi
lea edi, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x402244
lea esp, [esp]
cmp esi, 0x400
jae 0x402244
cmp byte [esp + esi + 0x174], 0x5c
jne 0x40223f
push esi
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0xe94]
push ecx
call fcn.00432800
lea edx, [esp + 0xe98]
push edx
mov byte [esp + esi + 0xe9c], bl
call fcn.004effcc
add esp, 0x10
inc esi
cmp esi, edi
jl 0x402200
lea eax, [esp + 0x174]
push eax
call fcn.004effcc
mov eax, dword [ebp + 0x78]
add esp, 4
cmp eax, ebx
jne 0x402260
mov eax, 0x51ef98
lea edx, [esp + 0x174]
mov ecx, eax
call fcn.004017c0
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x1c]
push 0x50d2f0
push edx
call fcn.004326d1
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401720
jmp 0x402589
lea ecx, [esp + 0x18]
push ecx
push str.CAMERAEDITORRESOURCEDIR
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x4022c4
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.004017a0
jmp 0x402589
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push str.GRIDSIZE
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402314
mov ecx, dword [esp + 0x10]
mov eax, ecx
cmp eax, ebx
mov dword [ebp + 0xc4], ecx
jge 0x4022fc
mov dword [ebp + 0xc4], ebx
jmp 0x402589
cmp eax, 0x68
jle 0x402589
mov dword [ebp + 0xc4], 0x68
jmp 0x402589
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push str.CPURATING
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402340
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xc8], eax
jmp 0x402589
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.SYSTEMRAM
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x40236c
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xcc], edx
jmp 0x402589
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push str.VIDEORAM
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402398
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0xd0], ecx
jmp 0x402589
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push str.OBJDETAIL
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x4023c4
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xd8], eax
jmp 0x402589
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.TEXDETAIL
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x4023f0
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xdc], edx
jmp 0x402589
push ebx
lea eax, [esp + 0x1c]
push eax
push str.VIDEOGUID
lea ecx, [esp + 0x280]
call fcn.0040f160
test eax, eax
je 0x402420
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebp + 0xb0]
call fcn.0040d790
jmp 0x402589
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push str.VIDEODRIVER
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x40244c
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xb8], eax
jmp 0x402589
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.VIDEOMODE
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402478
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xbc], edx
jmp 0x402589
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push str.VIDEOREFRESH
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x4024a4
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0xc0], ecx
jmp 0x402589
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push str.WINDOWEDMODE
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x4024d3
cmp dword [esp + 0x10], ebx
setne al
mov byte [ebp + 0xd4], al
jmp 0x402589
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.RUNBENCHMARKS
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402502
cmp dword [esp + 0x10], ebx
setne dl
mov byte [ebp + 0xd5], dl
jmp 0x402589
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push str.FSAA
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x40252b
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0xe0], ecx
jmp 0x402589
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push str.VSYNC
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402557
cmp dword [esp + 0x10], ebx
setne al
mov byte [ebp + 0xd6], al
jmp 0x402589
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.SHADERLEVEL
lea ecx, [esp + 0x288]
call fcn.0040f230
test eax, eax
je 0x402589
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xec], edx
jmp 0x402589
cmp eax, 1
je 0x402716
push 0x100
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
jne 0x401ce2
jmp 0x402716
push str._INSTALL_
push ecx
call fcn.00432780
add esp, 8
test eax, eax
lea edx, [esp + 0x48c]
je 0x402679
push 0x100
push edx
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
je 0x402716
lea ecx, [esp + 0x274]
call fcn.0040edf0
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40264a
lea eax, [esp + 0x18]
push eax
push str.INSTALLFROM
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x402622
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401760
jmp 0x402653
lea edx, [esp + 0x18]
push edx
push str.INSTALLTO
lea ecx, [esp + 0x27c]
call fcn.0040f0e0
test eax, eax
je 0x402653
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401780
jmp 0x402653
cmp eax, 1
je 0x402716
push 0x100
lea ecx, [esp + 0x490]
push ecx
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
jne 0x4025e6
jmp 0x402716
push str._VERSION_
push edx
call fcn.00432780
add esp, 8
test eax, eax
je 0x402716
push 0x100
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
je 0x402716
lea esp, [esp]
lea ecx, [esp + 0x274]
call fcn.0040edf0
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4026f4
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.VERSION
lea ecx, [esp + 0x280]
call fcn.0040f160
test eax, eax
je 0x4026f9
lea edx, [esp + 0x18]
push edx
call fcn.00432723
fstp dword [ebp + 0xe8]
add esp, 4
jmp 0x4026f9
cmp eax, 1
je 0x402716
push 0x100
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
jne 0x4026b0
push 0x100
lea ecx, [esp + 0x490]
push ecx
lea ecx, [esp + 0x120]
call fcn.0040eaf0
test eax, eax
jne 0x401c90
lea ecx, [esp + 0x118]
call fcn.0040e960
cmp byte [esp + 0x17], bl
je 0x402754
push ebx
mov ecx, 0x51eea8
call fcn.00402790
lea ecx, [esp + 0x118]
mov dword [esp + 0x1294], 0xffffffff
call fcn.0040e390
mov al, 1
mov ecx, dword [esp + 0x128c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1288
ret 4