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

Disassembly:
push 0x2bc
mov eax, 0x4764ec
call fcn.0044cfd2
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x48ac6c
mov ecx, edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], ebx
call fcn.00403322
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x2c4], 1
call fcn.0044d460
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, ebx
je 0x410cea
push 3
pop esi
sub eax, esi
je 0x410cbd
dec eax
je 0x410c58
dec eax
je 0x410bc9
dec eax
je 0x410b6b
dec eax
je 0x410b0b
dec eax
jne 0x410d18
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00410a17
pop ecx
pop ecx
mov dword [ebp - 4], 9
xor eax, eax
push str.dump
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x290], 7
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x2a4], ax
call fcn.004032fb
lea eax, [ebp - 0x2a4]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00416324
pop ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a4]
jmp 0x410c29
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00410a17
pop ecx
pop ecx
push 7
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2ac], eax
xor eax, eax
push 0x494ab0
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
mov word [ebp - 0x2c0], ax
call fcn.004032fb
lea eax, [ebp - 0x2c0]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.00416324
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c0]
jmp 0x410c29
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00410a17
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor eax, eax
push str.Temp
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
call fcn.004032fb
lea eax, [ebp - 0x250]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.00416324
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
jmp 0x410c29
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00410a17
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor eax, eax
push 0x494a90
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], ax
call fcn.004032fb
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00416324
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x26c]
push ebx
push 1
call fcn.00403656
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.0040377e
push ebx
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00403656
jmp 0x410d18
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00410a17
pop ecx
pop ecx
mov dword [ebp - 4], 5
xor eax, eax
push str.Image
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
call fcn.004032fb
lea eax, [ebp - 0x288]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.00416324
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x288]
jmp 0x410c29
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SGWeiDuanPush
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044d8c2
add esp, 0xc
jmp 0x410d0a
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004032fb
cmp dword [edi + 0x10], ebx
je 0x410d47
cmp dword [edi + 0x14], 8
jb 0x410d27
mov eax, dword [edi]
jmp 0x410d29
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410d47
cmp dword [edi + 0x14], 8
jb 0x410d3e
mov eax, dword [edi]
jmp 0x410d40
mov eax, edi
push eax
call fcn.004021de
pop ecx
mov eax, edi
call fcn.0044d055
ret