Function at 0x4c7f90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e974c
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x34], ebx
push 0x5b1054
lea ecx, [ebx + 0x58]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 0xc]
add ebx, 0x10
test ecx, ecx
je 0x4c82c1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c82c1
push 0x5c
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0
call sub.MFC80U.DLL_Ordinal_386
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 1
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push 0x5b1058
mov ecx, eax
mov byte [esp + 0x64], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [esp + 0x24]
setne byte [esp + 0x13]
mov byte [esp + 0x60], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [esp + 0x13], 0
je 0x4c8077
push 0x5b105c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push 0x5b1060
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00401030
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x44]
call sub.MFC80U.DLL_Ordinal_2271
test eax, eax
je 0x4c8296
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_2279
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x40]
push 0x10
lea ecx, [esp + 0x40]
call eax
test eax, eax
je 0x4c80f6
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_3925
test eax, eax
je 0x4c8251
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_3925
test eax, eax
jne 0x4c8251
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_2742
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x6c], 5
call fcn.00401a90
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 1
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea edi, [esp + 0x24]
call fcn.004b17b0
add esp, 8
push 0x5b1068
mov ecx, edi
mov byte [esp + 0x64], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
je 0x4c8198
push 0x5b1070
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
je 0x4c8198
push 0x5b1078
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4c8238
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea eax, [esp + 0x20]
push eax
call fcn.004b1ad0
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x6c], 9
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea eax, [esp + 0x1c]
push eax
call fcn.004b1ad0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 0xc]
mov edi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp esi, 0xffffffff
jne 0x4c821f
cmp edi, esi
je 0x4c8224
cmp eax, 0xa
jle 0x4c825e
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp dword [esp + 0x30], 0
jne 0x4c80c5
jmp 0x4c8296
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x14]
mov dword [edx + 0x54], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_1431
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0
call sub.MFC80U.DLL_Ordinal_631
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret