Function at 0x4844d0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x30dc
call fcn.004d3780
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.004843a0
add esp, 0x14
test eax, eax
je 0x484565
lea eax, [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x20a8]
push eax
push ecx
push str.TrustApp
call fcn.004ae0e0
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.004ae0e0
mov eax, dword [0x6bfb44]
add esp, 0x10
cmp eax, ebp
je 0x4845a4
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 0x48479e
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x105c]
push 0x4eb5e0
push ecx
call ebx
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4845d9
mov word [esi], bp
add esi, 2
mov dx, word [0x4ffec0]
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 0x48463b
lea ecx, [esp + 0x105c]
push 0x4ee640
push ecx
call ebx
add esp, 8
test eax, eax
je 0x48463b
lea edx, [esp + 0x105c]
lea eax, [esp + 0x14]
push edx
push 0x4eb504
push 0x823
push eax
jmp 0x484656
push esi
call edi
add esp, 4
cmp eax, 1
jbe 0x48465f
push esi
push 0x4eb504
lea ecx, [esp + 0x1c]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
cmp word [esp + 0x14], bp
je 0x48479c
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 0x48477b
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 0x48477b
lea ecx, [esp + 0x14]
mov word [esi], ax
push ecx
call fcn.004afc20
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4846cc
push eax
call edi
add esp, 4
test eax, eax
jne 0x484761
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 0x484700
lea eax, [esp + 0x14]
push eax
call edi
mov ecx, 0x823
add esp, 4
sub ecx, eax
jmp 0x484705
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 0x484761
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 0x48474c
lea edx, [esp + 0x14]
push edx
call edi
mov ecx, 0x823
add esp, 4
sub ecx, eax
jmp 0x484751
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 0x484690
lea edx, [esp + 0x14]
push edx
call fcn.004842e0
add esp, 4
test eax, eax
jne 0x48479c
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