Function at 0x4e4a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed9b7
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 0x4e4ac1
call ebx
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
jbe 0x4e4ad1
call ebx
mov esi, edi
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x40], edx
jbe 0x4e4adf
call ebx
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x4e4aeb
call ebx
cmp esi, edi
je 0x4e4c02
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x44]
jb 0x4e4aff
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 0x4e4b17
call ebx
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0x5ad76c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4b50
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 0x4e4bca
push 0x5ad770
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4b79
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 0x4e4bca
push 0x5ad774
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4ba8
push 0x5ad780
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 0x4e4bca
push 0x5ad790
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x4e4bca
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 0x4e4beb
call ebx
add edi, 4
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x28], edi
jb 0x4e4bfa
call ebx
add esi, 4
jmp 0x4e4ad3
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x4e4c2a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e4c2a
mov esi, dword [ebp + 8]
add esi, 0x24
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 0x4e4c60
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x4e4c57
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e4c44
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 0x4e4c9c
mov edi, dword [esp + 0x44]
cmp esi, edi
je 0x4e4c93
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4e4c80
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