Function at 0x10022660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075730
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1009e034]
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 dword [ebp - 0x60], ecx
push 0x20
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x100226f9
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0
lea eax, [edi + 4]
mov dword [edi], vtable.iGarbage::ITraceItemSet.0
mov dword [edi + 8], 0x7e2
push 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x100226fb
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 4], 0
push 0x1b
xor eax, eax
push str._APPDATA_GRETECHGomPlayer
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.10003de0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10058dd0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100126d0
cmp dword [ebp - 0x64], 8
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10022772
push dword [ebp - 0x78]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
jb 0x10022794
push dword [ebp - 0x34]
call ebx
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.SoftwareGRETECHGomPlayerOPTION
push 0x80000001
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x1c], 0
je 0x10022853
mov dword [ebp - 0x74], str.sCachePath
mov dword [ebp - 0x70], str.sACapFolder
mov dword [ebp - 0x6c], str.sDmbCapFolder
mov dword [ebp - 0x68], str.sGallerySavePath
mov dword [ebp - 0x64], str.sVCapFolder
xor esi, esi
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
push dword [ebp + esi*4 - 0x74]
lea ecx, [ebp - 0x1c]
call fcn.1005cb10
test eax, eax
jne 0x1002283f
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1002283f
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.100126d0
cmp dword [ebp - 0x20], 8
jb 0x1002284d
push dword [ebp - 0x34]
call ebx
add esp, 4
inc esi
cmp esi, 5
jl 0x100227f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.1002be10
mov ecx, dword [ebp - 0x60]
push edi
push 0x7e2
call fcn.1001f0a0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x100228b3
push dword [ebp - 0x58]
push esi
call fcn.1000db40
push esi
call ebx
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100228c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100228d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.1006e4e6
mov esp, ebp
pop ebp
ret