Function at 0x4e47c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed971
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 0x4e4841
call ebx
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
jbe 0x4e4851
call ebx
mov esi, edi
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x40], edx
jbe 0x4e485f
call ebx
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x4e486b
call ebx
cmp esi, edi
je 0x4e4982
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x44]
jb 0x4e487f
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 0x4e4897
call ebx
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0x5ad79c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e48d0
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 0x4e494a
push 0x5ad7a0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e48f9
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 0x4e494a
push 0x5ad7a4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4928
push str.single
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 0x4e494a
push str.path
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e494a
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 0x4e496b
call ebx
add edi, 4
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x28], edi
jb 0x4e497a
call ebx
add esi, 4
jmp 0x4e4853
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x4e49aa
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e49aa
mov esi, dword [ebp + 8]
add esi, 0x34
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 0x4e49e0
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x4e49d7
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e49c4
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 0x4e4a1c
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x4e4a13
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e4a00
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