Function at 0x4b8b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e31eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [ebp - 0x10], esi
je 0x4b8e2a
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x32
jae 0x4b8e2a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4b8e2a
mov al, byte [esi + 4]
test al, al
jne 0x4b8e2a
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b8e2a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004acae0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea ecx, [ebp - 0x28]
call fcn.00412790
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 4], ebx
call fcn.004d4660
mov ecx, eax
call fcn.004d5320
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00412770
mov edx, dword [ebp + 8]
push 0x104
push edx
call fcn.004c00d0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.004db2e0
mov edi, eax
cmp edi, ebx
je 0x4b8ca4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004acae0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
push ebx
call fcn.004c0110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 8
add ecx, 0x28
push eax
push 0x4f6580
push 0x31
push ecx
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
mov word [ebp - 0x230], 0
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [ebp - 0x1c]
stosw word es:[edi], ax
call fcn.004db2e0
mov ebx, eax
test ebx, ebx
jne 0x4b8cfb
xor edi, edi
jmp 0x4b8d2e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004acae0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
push 0x4f6580
lea edx, [ebp - 0x230]
push 0x104
push edx
call esi
mov ebx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
push 0x4f6580
lea ecx, [ebx + 0x8c]
push 0x32
push ecx
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x436]
mov word [ebp - 0x438], 0
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [ebp - 0x438]
mov ecx, ebx
push 0x104
push edx
stosw word es:[edi], ax
call fcn.004bf6e0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4b8e02
lea ecx, [ebp - 0x758]
call fcn.004d5860
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x758]
call fcn.004d5e20
lea edx, [ebp - 0x230]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4b8df3
push 2
call fcn.004c0250
add esp, 4
lea eax, [ebp - 0x438]
push 1
push eax
call fcn.004c0d40
mov ecx, eax
call fcn.004cfd70
lea ecx, [ebp - 0x758]
mov byte [ebp - 4], 2
call fcn.004d58e0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push ecx
push edx
mov ecx, ebx
mov dword [ebx + 0x1c], 0
call fcn.004b86d0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00412770
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x764]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8