Function at 0x484fb0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x30dc
call fcn.004d4ce0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x20a6]
mov word [esp + 0x20a4], bp
mov word [esp + 0x105c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x105e]
mov edx, dword [esp + 0x30f0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x105c]
push 0x824
push eax
lea ecx, [esp + 0x20ac]
push 0x824
push ecx
push edx
mov dword [esp + 0x24], ebp
call fcn.00484e80
add esp, 0x14
test eax, eax
je 0x485045
lea eax, [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x20a8]
push eax
push ecx
push 0x4fb9e8
call fcn.004af430
add esp, 0x10
lea edx, [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
lea eax, [esp + 0x20a8]
push edx
push eax
push str.TrustAppTmp
call fcn.004af430
mov eax, dword [0x722adc]
add esp, 0x10
cmp eax, ebp
je 0x485084
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
cmp ecx, 1
pop esi
pop ebp
sete al
pop ebx
add esp, 0x30dc
ret
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
je 0x48527e
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x105c]
push 0x4ed204
push ecx
call ebx
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4850b9
mov word [esi], bp
add esi, 2
mov dx, word [0x500df0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esp + 0x105c]
push eax
call edi
add esp, 4
cmp eax, 1
jbe 0x48511b
lea ecx, [esp + 0x105c]
push 0x4ef314
push ecx
call ebx
add esp, 8
test eax, eax
je 0x48511b
lea edx, [esp + 0x105c]
lea eax, [esp + 0x14]
push edx
push 0x4ed128
push 0x823
push eax
jmp 0x485136
push esi
call edi
add esp, 4
cmp eax, 1
jbe 0x48513f
push esi
push 0x4ed128
lea ecx, [esp + 0x1c]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
cmp word [esp + 0x14], bp
je 0x48527c
lea edx, [esp + 0x14]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x48525b
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncat]
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
jne 0x48525b
lea ecx, [esp + 0x14]
mov word [esi], ax
push ecx
call fcn.004b0f70
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4851ac
push eax
call edi
add esp, 4
test eax, eax
jne 0x485241
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x18]
lea esi, [esp + eax*2 + 0x18]
push ecx
call edi
mov edx, 0x823
add esp, 8
sub edx, eax
cmp edx, 4
jae 0x4851e0
lea eax, [esp + 0x14]
push eax
call edi
mov ecx, 0x823
add esp, 4
sub ecx, eax
jmp 0x4851e5
mov ecx, 4
push ecx
lea ecx, [esp + 0x18]
push str..com
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
jne 0x485241
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
call edi
mov ecx, 0x823
add esp, 4
sub ecx, eax
cmp ecx, 4
jae 0x48522c
lea edx, [esp + 0x14]
push edx
call edi
mov ecx, 0x823
add esp, 4
sub ecx, eax
jmp 0x485231
mov ecx, 4
push ecx
lea eax, [esp + 0x18]
push str..exe
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x20
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x485170
lea edx, [esp + 0x14]
push edx
call fcn.00484dc0
add esp, 4
test eax, eax
jne 0x48527c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30dc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30dc
ret