Function at 0x4e4cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed9fd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov edi, edx
mov byte [esp + 0x60], 1
call fcn.004e44d0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x58], 2
mov esi, dword [esp + 0x40]
cmp esi, dword [esp + 0x44]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x4e4d41
call ebx
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
jbe 0x4e4d51
call ebx
mov esi, edi
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x40], edx
jbe 0x4e4d5f
call ebx
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x4e4d6b
call ebx
cmp esi, edi
je 0x4e4e82
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x44]
jb 0x4e4d7f
call ebx
push edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0x58], 3
cmp esi, dword [esp + 0x34]
jb 0x4e4d97
call ebx
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0x5ad294
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4dd0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 8], eax
jmp 0x4e4e4a
push 0x5ad740
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4df9
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0xc], eax
jmp 0x4e4e4a
push 0x5ad744
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4e28
push 0x5ad750
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
jmp 0x4e4e4a
push 0x5ad760
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4e4a
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp edi, dword [esp + 0x44]
jb 0x4e4e6b
call ebx
add edi, 4
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x28], edi
jb 0x4e4e7a
call ebx
add esi, 4
jmp 0x4e4d53
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x4e4eaa
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e4eaa
mov esi, dword [ebp + 8]
add esi, 0x14
lea ebx, [esp + 0x1c]
call fcn.00402e70
xor ebx, ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x4e4ee0
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x4e4ed7
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e4ec4
mov esi, dword [esp + 0x30]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov esi, dword [esp + 0x40]
cmp esi, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x4e4f1c
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x4e4f13
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e4f00
mov esi, dword [esp + 0x40]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4