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

Disassembly:
push 0xffffffffffffffff
push 0x5d5a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
mov eax, dword [0x5efc70]
mov edi, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
push edi
push ecx
mov dword [esp + 0x44], ebx
call sub.mfc42u.dll_operator
mov dword [esp + 0x1c], 0x5efd28
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x10]
mov byte [esp + 0x38], 2
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fb4d5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004fb1b0
add esp, 8
mov ebp, dword [esp + 0x48]
cmp ebp, 0xffffffff
je 0x4fb6e3
cmp ebp, dword [esi + 0xf0]
jge 0x4fb6e3
push 0xb8
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x38], 5
je 0x4fb51a
mov edx, dword [esi + 0x5c]
mov ecx, dword [edx + ebp*4]
push ecx
mov ecx, eax
call fcn.005018a0
mov ebx, eax
jmp 0x4fb51c
xor ebx, ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esi + 0x38]
push eax
push ecx
push edi
push ebp
push edx
mov ecx, ebx
mov byte [esp + 0x50], 2
call fcn.005036d0
test al, al
je 0x4fb657
test ebx, ebx
je 0x4fb54e
lea eax, [ebx + 4]
jmp 0x4fb550
xor eax, eax
push eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + ebp*4]
call fcn.004b46d0
test ebp, ebp
jne 0x4fb598
lea ebp, [ebx + 0x54]
mov ecx, esi
push ebp
call fcn.004fb9d0
mov eax, dword [esi + 0x60]
mov edi, 1
cmp eax, edi
jle 0x4fb5f4
mov ecx, dword [esi + 0xec]
lea eax, [esi + 0x6c]
mov ecx, dword [ecx + edi*4]
lea edx, [ecx + 0x54]
push edx
push eax
push ebp
call fcn.00502130
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x4fb577
jmp 0x4fb5f4
mov eax, dword [esi + 0xec]
mov ecx, dword [esp + 0x48]
lea ebp, [ebx + 0x68]
push 0xffffffffffffffff
mov edi, dword [eax + ecx*4]
mov ecx, ebp
add edi, 0x68
mov edx, dword [edi + 8]
push edx
call fcn.0046d900
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ebp, dword [ebp + 4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4fb5d7
inc eax
mov edx, dword [edi]
add edi, 4
mov dword [ebp], edx
add ebp, 4
dec eax
jne 0x4fb5c9
mov ecx, dword [esi + 0xec]
mov edx, dword [esp + 0x48]
lea eax, [esi + 0x6c]
mov ecx, dword [ecx + edx*4]
add ecx, 0x54
push ecx
push eax
push eax
mov ecx, ebx
call fcn.00502130
mov edx, dword [esi + 0xec]
mov edi, dword [esp + 0x48]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x4fb60b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xec]
mov dword [ecx + edi*4], ebx
mov ebp, dword [esp + 0x48]
push 0x61a754
call fcn.004d0b70
push eax
lea eax, [esp + 0x1c]
push eax
call sub.mfc42u.dll_operator
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x38], 7
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fb80f
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.004f87a0
jmp 0x4fb83a
test ebx, ebx
je 0x4fb663
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov dword [esp + 0x1c], 0x5efd28
mov esi, dword [esp + 0x20]
mov byte [esp + 0x38], 6
test esi, esi
je 0x4fb6a1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fb698
lea edi, [eax]
push 0
mov ecx, esi
call fcn.004fe890
add esi, 0x80
dec edi
jne 0x4fb682
mov esi, dword [esp + 0x20]
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x5e262c
mov byte [esp + 0x38], 0
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x38], 0xffffffff
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov eax, dword [esi + 0xf0]
lea edi, [esi + 0xe8]
xor ebx, ebx
test eax, eax
jle 0x4fb70d
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x4fb705
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x4fb6f5
push 0xa
push 0
mov ecx, edi
call fcn.0046d900
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
jle 0x4fb618
push 0xb8
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x38], 3
je 0x4fb751
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + edi*4]
mov ecx, eax
push edx
call fcn.005018a0
mov ebp, eax
jmp 0x4fb753
xor ebp, ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push eax
push edi
push ecx
mov ecx, ebp
mov byte [esp + 0x50], 2
call fcn.005036d0
test al, al
je 0x4fb7c4
test ebp, ebp
je 0x4fb785
lea eax, [ebp + 4]
jmp 0x4fb787
xor eax, eax
mov edx, dword [esi + 0x5c]
push eax
mov ecx, dword [edx + edi*4]
call fcn.004b46d0
mov ebx, dword [esi + 0xf0]
push 0xffffffffffffffff
lea ecx, [esi + 0xe8]
lea eax, [ebx + 1]
push eax
call fcn.0046d900
mov ecx, dword [esi + 0xec]
inc edi
mov dword [ecx + ebx*4], ebp
mov eax, dword [esi + 0x60]
cmp edi, eax
jl 0x4fb725
jmp 0x4fb614
test ebp, ebp
je 0x4fb7d1
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov dword [esp + 0x1c], 0x5efd28
mov esi, dword [esp + 0x20]
mov byte [esp + 0x38], 4
test esi, esi
je 0x4fb6a1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fb698
lea edi, [eax]
push 0
mov ecx, esi
call fcn.004fe890
add esi, 0x80
dec edi
jne 0x4fb7f8
jmp 0x4fb694
cmp ebp, 0xffffffff
jne 0x4fb83a
mov eax, dword [esi + 0x60]
mov edi, 1
cmp eax, edi
jle 0x4fb83a
lea ebx, [esi + 0x6c]
mov eax, dword [esi + 0xec]
push ebx
mov ecx, dword [eax + edi*4]
call fcn.00501fb0
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x4fb823
mov ecx, esi
call fcn.004fc740
mov eax, dword [esi + 0xf0]
xor ebp, ebp
xor edi, edi
cmp eax, ebp
jle 0x4fb888
mov ecx, dword [esi + 0xec]
xor eax, eax
mov ecx, dword [ecx + edi*4]
cmp dword [ecx + 0x98], ebp
jle 0x4fb87d
mov edx, dword [ecx + 0x94]
inc eax
mov edx, dword [edx + eax*4 - 4]
mov dword [edx + 0x978], ebp
mov edx, dword [ecx + 0x98]
cmp eax, edx
jl 0x4fb862
mov eax, dword [esi + 0xf0]
inc edi
cmp edi, eax
jl 0x4fb84f
mov ecx, esi
call fcn.004faf70
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, ebp
jle 0x4fb8bc
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + edi*4]
push ecx
mov ecx, esi
call fcn.004fa5c0
mov edx, dword [esi + 0x48]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.004fa8f0
mov eax, dword [esi + 0x4c]
inc edi
cmp edi, eax
jl 0x4fb898
mov eax, dword [esi + 0xf0]
xor ecx, ecx
cmp eax, ebp
jle 0x4fb8e4
mov edx, dword [esi + 0xec]
mov ebx, 1
mov edi, dword [edx]
cmp dword [edi + 0x5c], ebx
jg 0x4fb8e9
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4fb8d3
jmp 0x4fb8e9
mov ebx, 1
cmp ecx, eax
setl cl
test cl, cl
mov byte [esi + 0xe4], cl
jne 0x4fb920
xor ecx, ecx
cmp eax, ebp
jle 0x4fb913
mov edx, dword [esi + 0xec]
mov edi, dword [edx]
cmp dword [edi + 8], ebx
jne 0x4fb913
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4fb904
cmp ecx, eax
sete cl
mov byte [esi + 0xe5], cl
jmp 0x4fb927
mov byte [esi + 0xe5], 0
mov edx, dword [esi + 0xec]
lea ecx, [esi + 0x6c]
mov eax, dword [edx]
add eax, 0x54
push eax
call sub.mfc42u.dll_CStringArray::Copy
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x1c], 0x5efd28
mov esi, dword [esp + 0x20]
mov byte [esp + 0x38], 8
cmp esi, ebp
je 0x4fb985
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4fb97c
lea edi, [eax]
mov ecx, esi
call fcn.00500120
add esi, 0x80
dec edi
jne 0x4fb968
mov esi, dword [esp + 0x20]
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x5e262c
mov byte [esp + 0x38], 0
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x38], 0xffffffff
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc