Function at 0x4584c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
je 0x45884d
lea eax, [ebp - 0x74]
push eax
push 0xf
call fcn.005050b0
add esp, 8
test al, al
je 0x458587
lea ecx, [ebp - 0x38]
push ecx
push 0xa
call fcn.005050b0
add esp, 8
test al, al
je 0x458587
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x68]
add edx, 0xc8
cmp eax, edx
jle 0x458587
push ecx
mov ecx, dword [ebp - 0x38]
mov eax, esp
mov dword [ebp - 0x20], esp
lea edx, [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x74]
push edx
push eax
lea ecx, [ebp - 0x20]
call fcn.00458090
mov ecx, eax
call fcn.00468e90
mov ecx, dword [ebp - 0x1c]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x1e
jle 0x458587
push 1
push edi
push edi
push edi
push 0x61bf50
push 0x61bf18
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c660
add esp, 0x18
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x18]
push edx
call sub.mfc42u.dll_CString::CString_1
push 0x2e
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call sub.mfc42u.dll_CString::Find_1
cmp eax, 0xffffffff
je 0x4585ae
push eax
lea ecx, [ebp - 0x18]
call sub.mfc42u.dll_CString::GetBufferSetLength
mov eax, dword [ebp - 0x18]
push eax
call sub.etout.dll_double___cdecl_mgSetCutFile_unsigned_short_int_const__
fst qword [ebp - 0x30]
fcomp qword [0x5e2798]
add esp, 4
fnstsw ax
test ah, 0x40
jne 0x45883e
mov ecx, dword [esi + 0x1cc]
mov dword [ebp - 0x20], ecx
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
mov dword [ebp - 0x60], 0x5e2838
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], 0x5e76d8
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.004b6ca0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0045f330
mov ecx, esi
call fcn.004474f0
xor ebx, ebx
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [esi + 0x1dc]
jge 0x4587a6
lea ecx, [esi + 0x190]
push ebx
call fcn.004f8150
mov edi, eax
test edi, edi
je 0x458768
mov eax, dword [edi + 0x48]
test eax, eax
je 0x458768
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x458768
lea edx, [ebp - 0x14]
mov ecx, edi
push edx
mov dword [esi + 0x1cc], ebx
call fcn.004f46e0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45875c
mov ecx, dword [ebp - 0x14]
lea ebx, [esi + 0x2e0]
push 1
push ecx
mov ecx, ebx
call fcn.004d96e0
mov ecx, ebx
call fcn.004dfab0
push eax
push edi
push 1
lea ecx, [esi + 0x190]
call fcn.004f8360
test eax, eax
jne 0x45875c
mov ecx, esi
call fcn.00432930
test al, al
jne 0x45875c
push 0
push edi
mov ecx, ebx
call fcn.004df060
push ebx
lea ecx, [esi + 0x190]
call fcn.004fa9b0
mov ecx, esi
call fcn.0045f420
mov ecx, 0x626af0
call fcn.0042fc20
push 1
push 1
mov ecx, esi
call fcn.00437f20
test al, al
je 0x45875c
mov eax, 0
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
jne 0x458729
push 1
call dword [sym.imp.msvcrt.dll__exit]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004580a0
test al, al
je 0x458743
inc dword [ebp - 0x24]
push fcn.004580a0
call fcn.004cfc8c
add esp, 4
test eax, eax
jne 0x45875c
push 1
call dword [sym.imp.msvcrt.dll__exit]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.mfc42u.dll_CString::CString
mov ebx, dword [ebp - 0x1c]
inc ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
jmp 0x458637
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
cmp eax, edx
mov dword [ebp - 4], 4
jne 0x4587c0
mov ecx, esi
call fcn.0044fa90
jmp 0x4587dc
push edi
push 0x617bcc
push 0x61bf08
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c700
add esp, 0xc
mov eax, dword [ebp - 0x20]
push edi
push eax
mov ecx, esi
call fcn.0043db90
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.0042bd50
mov dword [ebp - 0x4c], 0x5e76d8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 8
cmp eax, edi
je 0x458812
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebp - 0x60], 0x5e2838
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x45882d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov byte [ebp - 4], 0
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4