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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe98
mov dword [ebp - 4], ecx
push 0x104
push 0
lea eax, [ebp - 0xe98]
push eax
call fcn.0040132f
add esp, 0xc
mov dword [ebp - 0x74], 0x104
lea eax, [ebp - 0xe98]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp + 0xc], 1
jne 0x4177cf
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd4], 0
je 0x41728b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc8], 0
je 0x41728b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xcc], 0
je 0x41728b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd8], 0
je 0x41728b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
je 0x41728b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd0], 0
jne 0x4177cf
mov eax, dword [0x42cdb4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x78], eax
push 5
mov eax, dword [0x42cdb4]
push dword [eax + 8]
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0042455b
lea ecx, [ebp - 0x70]
call fcn.00401546
test eax, eax
jne 0x4172d4
and dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x70]
call fcn.004066da
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x7c]
jmp 0x417bbd
lea ecx, [ebp - 0x70]
call fcn.00401546
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x70]
call fcn.004066ab
mov dword [ebp - 0x10], eax
push 0x100
push 0
lea eax, [ebp - 0xa90]
push eax
call fcn.0040132f
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.0040132f
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x890]
push eax
call fcn.0040132f
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x690]
push eax
call fcn.0040132f
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0xc90]
push eax
call fcn.0040132f
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.0040132f
add esp, 0xc
mov dword [ebp - 0x44], 0x519d0
mov dword [ebp - 0x3c], 0x217d0
mov dword [ebp - 0x38], 0x6b738
mov dword [ebp - 0x48], 0x1303d0
mov dword [ebp - 0x34], 0x235d0
mov dword [ebp - 0x40], 0x14748
and dword [ebp - 8], 0
push dword [ebp - 0x44]
call fcn.00401000
pop ecx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x3c]
call fcn.00401000
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x38]
call fcn.00401000
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x48]
call fcn.00401000
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x34]
call fcn.00401000
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x40]
call fcn.00401000
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x24]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x18]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x28]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0x20]
call fcn.00401309
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x290]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x4274b4
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x490]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.msvcp140.dll
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x890]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42759c
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x690]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4275b4
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xc90]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.freebl3.dll
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xa90]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x427684
lea eax, [ebp - 0xa90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp - 0x14], 0
je 0x417736
cmp dword [ebp - 0x18], 0
je 0x417736
cmp dword [ebp - 0x1c], 0
je 0x417736
cmp dword [ebp - 0x20], 0
je 0x417736
cmp dword [ebp - 0x24], 0
je 0x417736
cmp dword [ebp - 0x28], 0
je 0x417736
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x4175f7
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x4175f7
push dword [ebp - 0x34]
push dword [ebp - 0x14]
lea eax, [ebp - 0x290]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x4175fb
and dword [ebp - 0x14], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x18]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x417636
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x18]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x417636
push dword [ebp - 0x38]
push dword [ebp - 0x18]
lea eax, [ebp - 0x490]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x41763a
and dword [ebp - 0x18], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x417675
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x1c]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x417675
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x890]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x417679
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x4176b4
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x4176b4
push dword [ebp - 0x40]
push dword [ebp - 0x20]
lea eax, [ebp - 0x690]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x4176b8
and dword [ebp - 0x20], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x4176f3
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x4176f3
push dword [ebp - 0x44]
push dword [ebp - 0x24]
lea eax, [ebp - 0xc90]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x4176f7
and dword [ebp - 0x24], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x28]
movsx eax, byte [ecx + eax]
cmp eax, 0x4d
jne 0x417732
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x28]
movsx eax, byte [ecx + eax]
cmp eax, 0x5a
jne 0x417732
push dword [ebp - 0x48]
push dword [ebp - 0x28]
lea eax, [ebp - 0xa90]
push eax
call fcn.00422032
add esp, 0xc
jmp 0x417736
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], eax
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd8], eax
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xcc], eax
lea eax, [ebp - 0xa90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd0], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd4], eax
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc0], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x70]
call fcn.004066da
jmp 0x417a49
lea ecx, [ebp + 8]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x427714
lea ecx, [ebp + 8]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.00406fbc
push str.nss3.dll
lea ecx, [ebp - 0x64]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406fbc
push 0x427894
lea ecx, [ebp - 0x50]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406fbc
push 0x4278fc
lea ecx, [ebp - 0x4c]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00406fbc
push 0x4279d4
lea ecx, [ebp - 0x60]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406fbc
push 0x4279ec
lea ecx, [ebp - 0x68]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00406fbc
push str.vcruntime140.dll
lea ecx, [ebp - 0x5c]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00406fbc
push 0x427d24
lea ecx, [ebp - 0x58]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00406fbc
push 0x427d7c
lea ecx, [ebp - 0x54]
call fcn.00406c53
mov dword [ebp - 0xc], 0x5a
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406fbc
push dword [ebp - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00406cda
mov dword [ebp - 0x80], eax
push 0x427dd4
mov ecx, dword [ebp - 0x80]
call fcn.00406c53
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e9e4
pop ecx
test eax, eax
je 0x417905
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406bfc
lea ecx, [ebp - 0x2c]
call fcn.00406be2
jmp 0x41791f
mov eax, dword [ebp - 0xc]
add eax, 0xa
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2c]
call fcn.00406be2
cmp dword [ebp - 0xc], 0x96
jne 0x4178ba
mov dword [ebp - 0xc], 0x5a
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406fbc
push dword [ebp - 0xc]
lea ecx, [ebp - 0x30]
call fcn.00406cda
mov dword [ebp - 0x84], eax
push 0x427f0c
mov ecx, dword [ebp - 0x84]
call fcn.00406c53
lea eax, [ebp - 0x30]
push eax
call fcn.0041e9e4
pop ecx
test eax, eax
je 0x417977
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406bfc
lea ecx, [ebp - 0x30]
call fcn.00406be2
jmp 0x417991
mov eax, dword [ebp - 0xc]
add eax, 0xa
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x30]
call fcn.00406be2
cmp dword [ebp - 0xc], 0x96
jne 0x417926
lea ecx, [ebp - 0x5c]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd8], eax
lea ecx, [ebp - 0x50]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc4], eax
lea ecx, [ebp - 0x4c]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], eax
lea ecx, [ebp - 0x60]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xcc], eax
lea ecx, [ebp - 0x64]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd0], eax
lea ecx, [ebp - 0x54]
call fcn.00406be2
lea ecx, [ebp - 0x58]
call fcn.00406be2
lea ecx, [ebp - 0x5c]
call fcn.00406be2
lea ecx, [ebp - 0x68]
call fcn.00406be2
lea ecx, [ebp - 0x60]
call fcn.00406be2
lea ecx, [ebp - 0x4c]
call fcn.00406be2
lea ecx, [ebp - 0x50]
call fcn.00406be2
lea ecx, [ebp - 0x64]
call fcn.00406be2
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd0], 0
jne 0x417a6f
and dword [ebp - 0x88], 0
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x88]
jmp 0x417bbd
push 0
push 0x427fb4
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x84], eax
push 0
push 0x42802c
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x9c], eax
push 0
push 0x428044
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x98], eax
push 0
push 0x428058
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x8c], eax
push 0
push 0x428068
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x90], eax
push 0
push 0x428080
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x94], eax
push 0
push 0x428098
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x88], eax
push 0
push 0x4280a8
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa0], eax
push 0
push 0x4280b8
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa4], eax
lea eax, [ebp - 0xe98]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x8c], 1
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x8c]
leave
ret 8