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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70e151
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x46c], edi
cmp dword [edi + 0x7c], 8
lea eax, [edi + 0x68]
jb 0x417bd2
mov eax, dword [edi + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417bf9
push 1
push str.1a044
push 1
call fcn.004113b0
mov ecx, eax
call fcn.0040d660
xor eax, eax
jmp 0x417f18
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c3e70
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c3e70
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x3e8
push 0
call fcn.00447b54
push 0x3e8
push 0
mov esi, eax
call fcn.00447b54
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_drd_d_
push eax
call fcn.004106b0
add esp, 0x24
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x438], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417c91
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.004050a0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0043e84a
add esp, 4
lea eax, [edi + 0x68]
cmp dword [edi + 0x7c], 8
jb 0x417ce3
mov eax, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.004422b7
add esp, 8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push dword [ebp - 0x458]
cmovae eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x438]
push eax
mov byte [ebp - 4], 1
call fcn.00404f20
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
lea eax, [edi + 0x68]
cmovae ecx, dword [ebp - 0x438]
cmp dword [edi + 0x7c], 8
jb 0x417d3d
mov eax, dword [edi + 0x68]
push ecx
push eax
call fcn.0044e5ab
add esp, 8
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417d82
push 1
push str.09c44
push 1
call fcn.004113b0
mov ecx, eax
call fcn.0040d660
xor esi, esi
jmp 0x417f00
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
push str.c1c819e328900d
push dword [edi + 0x24]
mov byte [ebp - 4], 2
call fcn.00418a00
mov edx, eax
add esp, 8
test edx, edx
je 0x417ddc
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417dc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.004050a0
cmp dword [ebp - 0x43c], 8
lea ecx, [ebp - 0x450]
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x450]
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
push 0
cmovae eax, dword [ebp - 0x438]
push ecx
push eax
call fcn.0043f86e
add esp, 0x10
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x417e38
push 1
push str.10cde
push 1
call fcn.004113b0
mov ecx, eax
call fcn.0040d660
mov ecx, edi
call fcn.0041a080
mov eax, dword [edi + 8]
xor ecx, ecx
mov esi, dword [edi + 4]
mov ebx, eax
sub ebx, esi
xor edi, edi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x417e70
mov ecx, dword [esi]
test ecx, ecx
je 0x417e68
mov eax, dword [ecx]
push 0
push 0
push 0x469
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x417e55
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov edi, dword [ebp - 0x46c]
imul eax, dword [edi + 0xc8], 0x3e8
push eax
call esi
cmp dword [edi + 0x94], 8
lea eax, [edi + 0x80]
jb 0x417ea1
mov eax, dword [eax]
push eax
call fcn.0044e5eb
lea eax, [edi + 0x98]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x417eb8
mov eax, dword [eax]
push eax
call fcn.0044e5eb
lea eax, [edi + 0x68]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x417ecc
mov eax, dword [eax]
push eax
call fcn.0044e5eb
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0044e5eb
add esp, 8
lea ecx, [ebp - 0x450]
call fcn.00402710
mov esi, dword [ebp - 0x470]
lea ecx, [ebp - 0x468]
call fcn.00402710
lea ecx, [ebp - 0x438]
call fcn.00402710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret