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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d06d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x80
lea edx, [esi + 0xc04]
xor eax, eax
mov edi, edx
lea ebx, [esi + 0x190]
rep stosd dword es:[edi], eax
xor ebp, ebp
mov ecx, ebx
mov dword [edx], 0xffffffff
mov dword [esi + 0x17c], ebp
xor edi, edi
call fcn.004f8140
test eax, eax
jle 0x497cf9
push edi
mov ecx, ebx
call fcn.004f8150
cmp eax, ebp
je 0x497ced
cmp dword [eax + 0x48], ebp
je 0x497ced
inc dword [esi + 0x17c]
mov ecx, ebx
inc edi
call fcn.004f8140
cmp edi, eax
jl 0x497cd6
mov eax, dword [esi + 0x17c]
mov edi, 1
cmp eax, edi
jg 0x497d21
mov dword [esi + 0x17c], ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xcc]
lea ecx, [esi + 0x2e0]
mov dword [esp + 0x1c], ecx
call fcn.004dae00
mov ecx, ebx
mov dword [esi + 0x17c], edi
call fcn.004f8140
test eax, eax
jle 0x497dfc
push ebp
mov ecx, ebx
call fcn.004f8150
mov edi, eax
test edi, edi
je 0x497dec
mov eax, dword [edi + 0x48]
test eax, eax
je 0x497dec
fld dword [edi + 0xf0]
fcomp dword [0x5e29e8]
fnstsw ax
test ah, 0x41
jne 0x497d99
mov ecx, edi
call fcn.00506ea0
fcomp qword [edi + 0xc0]
fnstsw ax
test ah, 1
jne 0x497dec
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004f46e0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x497ddf
mov edx, dword [esi + 0x17c]
mov dword [esi + edx*4 + 0xc04], ebp
mov eax, dword [esi + 0x17c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004d9780
mov dword [esi + 0x17c], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], edi
call sub.mfc42u.dll_CString::CString
mov ecx, ebx
inc ebp
call fcn.004f8140
cmp ebp, eax
jl 0x497d59
mov ecx, ebx
xor ebp, ebp
call fcn.004f8140
test eax, eax
jle 0x497ec4
push ebp
mov ecx, ebx
call fcn.004f8150
mov edi, eax
test edi, edi
je 0x497eb4
mov eax, dword [edi + 0x48]
test eax, eax
je 0x497eb4
fld dword [edi + 0xf0]
fcomp dword [0x5e29e8]
fnstsw ax
test ah, 0x40
jne 0x497eb4
mov ecx, edi
call fcn.00506ea0
fcomp qword [edi + 0xc0]
fnstsw ax
test ah, 1
je 0x497eb4
lea edx, [esp + 0x18]
mov ecx, edi
push edx
call fcn.004f46e0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497ea3
mov ecx, dword [esi + 0x17c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.004d9780
mov edx, eax
mov eax, dword [esi + 0x17c]
cmp eax, edx
jge 0x497e9d
mov ecx, edx
lea edi, [esi + eax*4 + 0xc04]
sub ecx, eax
mov eax, ebp
rep stosd dword es:[edi], eax
mov dword [esi + 0x17c], edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, ebx
inc ebp
call fcn.004f8140
cmp ebp, eax
jl 0x497e0d
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.004faa50
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret