Function at 0x41f590
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x213c
call fcn.0041c0c0
push 0x2000
push 0
lea eax, [ebp - 0x2148]
push eax
call fcn.0045d480
add esp, 0xc
movzx ecx, byte [ebp - 0x1d]
push ecx
lea ecx, [ebp - 0x100]
call fcn.0041d040
lea ecx, [ebp - 0x100]
call fcn.00423850
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41f5fa
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x41f648
lea ecx, [ebp - 0x2148]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x2148]
push edx
call fcn.00468c16
add esp, 4
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x2148]
push edx
lea ecx, [ebp - 0x100]
call fcn.00401490
jmp 0x41f676
mov eax, dword [ebp + 8]
push eax
call fcn.00468c16
add esp, 4
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x100]
call fcn.00401490
cmp dword [ebp + 0xc], 0
je 0x41f686
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x41f68d
mov dword [ebp + 0xc], 0x4a5250
cmp dword [ebp + 0x10], 0
jne 0x41f69a
mov dword [ebp + 0x10], 0x4a525c
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
movzx eax, byte [ebp - 0x1e]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041d040
lea ecx, [ebp - 0x7c]
call fcn.00423850
mov byte [ebp - 4], 1
movzx ecx, byte [ebp - 0x1f]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0041d040
lea ecx, [ebp - 0x64]
call fcn.00423850
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
test eax, eax
je 0x41f734
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s._s
lea eax, [ebp - 0x118]
push eax
call fcn.00421bf0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x64]
cmp edx, dword [ebp - 0x84]
je 0x41f727
xor eax, eax
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x64]
call fcn.004232e0
lea ecx, [ebp - 0x118]
call fcn.00423720
jmp 0x41f765
mov eax, dword [ebp + 0xc]
push eax
call fcn.00468c16
add esp, 4
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401490
lea ecx, [ebp - 0x64]
call fcn.00423370
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x100]
call fcn.00423370
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041fd10
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.00423370
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f7c3
cmp dword [ebp + 0x18], 0
je 0x41f82c
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x9c]
je 0x41f7ed
xor ecx, ecx
mov byte [ebp - 0xe], cl
movzx edx, byte [ebp - 0xe]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004230a0
mov dword [ebp - 0xa0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00423720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00423720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.00423720
mov eax, dword [ebp - 0xa0]
jmp 0x41fafe
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x41f87c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s__I64u._s
lea ecx, [ebp - 0x130]
push ecx
call fcn.00421bf0
add esp, 0x18
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x64]
call fcn.00403f90
lea ecx, [ebp - 0x130]
call fcn.00423720
jmp 0x41f8bc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s__I64u
lea eax, [ebp - 0x148]
push eax
call fcn.00421bf0
add esp, 0x14
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00403f90
lea ecx, [ebp - 0x148]
call fcn.00423720
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
jne 0x41f8d7
mov dword [ebp - 0x34], 1
jmp 0x41f8de
mov dword [ebp - 0x34], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0xf], al
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x41f8f1
jmp 0x41fac4
lea edx, [ebp - 0x64]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 8
jb 0x41f90f
mov dword [ebp - 0x38], 1
jmp 0x41f916
mov dword [ebp - 0x38], 0
mov dl, byte [ebp - 0x38]
mov byte [ebp - 0x10], dl
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x41f938
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], edx
lea eax, [ebp - 0x100]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 8
jb 0x41f96e
mov dword [ebp - 0x40], 1
jmp 0x41f975
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x41f997
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041fd10
add esp, 0xc
test eax, eax
je 0x41faa3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x41f9ec
mov dword [ebp - 0x48], 1
jmp 0x41f9f3
mov dword [ebp - 0x48], 0
mov cl, byte [ebp - 0x48]
mov byte [ebp - 0x12], cl
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x41fa15
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41faa1
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0xd4]
je 0x41fa65
xor edx, edx
mov byte [ebp - 0x13], dl
movzx eax, byte [ebp - 0x13]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004230a0
mov dword [ebp - 0xd8], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00423720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00423720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.00423720
mov eax, dword [ebp - 0xd8]
jmp 0x41fafe
jmp 0x41faa5
jmp 0x41fac4
mov edx, dword [ebp - 0x1c]
add edx, 1
mov eax, dword [ebp - 0x18]
adc eax, 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov ecx, 1
test ecx, ecx
jne 0x41f82c
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00423720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00423720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.00423720
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret