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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce8e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x1c], ebx
call fcn.004119b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call sub.mfc42u.dll_CString::CString_3
mov dword [ebp - 0x50], 0x5e27fc
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov ecx, dword [ebx + 0x24]
mov byte [ebp - 4], 2
add ecx, 0x190
xor edi, edi
call fcn.004f8140
test eax, eax
jle 0x47fae8
mov ecx, dword [ebx + 0x24]
push edi
add ecx, 0x190
call fcn.004f8150
mov esi, eax
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x47facf
mov eax, dword [ebx + 0x24]
cmp edi, dword [eax + 0x1cc]
je 0x47facf
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004f46e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.mfc42u.dll_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CString::CString
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47facf
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004f6ec0
mov ecx, dword [eax]
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
push 0x61d2e8
push ecx
mov byte [ebp - 4], 4
call sub.mfc42u.dll_CString::Format_1
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CString::CString
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0xc4]
call sub.mfc42u.dll_CStringArray::SetAtGrow
mov ecx, dword [ebp - 0x48]
push edi
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040c9d0
mov ecx, dword [ebx + 0x24]
inc edi
add ecx, 0x190
call fcn.004f8140
cmp edi, eax
jl 0x47fa11
xor esi, esi
cmp dword [ebp - 0x48], esi
je 0x47fdc2
lea ecx, [ebp - 0x124]
call sub.mfc42u.dll_CDialog::DoModal
cmp eax, 1
jne 0x47fdc2
mov ecx, dword [ebx + 0x24]
add ecx, 0x2e0
call fcn.004e33b0
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + edx*4]
lea edx, [ebp - 0x14]
push ecx
mov ecx, dword [ebx + 0x24]
push edx
add ecx, 0x190
call fcn.004f81c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.mfc42u.dll_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CString::CString
lea ecx, [ebp - 0x38]
call fcn.0040abe0
mov edi, 0x5e788c
push 0xa
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], edi
call fcn.0046d900
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
push 1
push ecx
mov byte [ebp - 4], 8
call fcn.004d9910
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0040abe0
push 0xa
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
mov dword [ebp - 0x64], edi
call fcn.0046d900
mov byte [ebp - 4], 0xa
cmp esi, dword [ebp - 0x30]
jge 0x47fbe6
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + esi*4]
call fcn.004ed400
test al, al
je 0x47fbe3
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
inc eax
mov edi, dword [edx + esi*4]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x64]
call fcn.0046d900
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov dword [eax + ecx*4], edi
inc esi
jmp 0x47fba1
xor ecx, ecx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jge 0x47fd34
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x30]
jge 0x47fd2e
mov edx, dword [ebp - 0x34]
mov esi, dword [edx + eax*4]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esi + 0x148]
cmp ecx, dword [eax + 0x148]
jne 0x47fc5a
cmp esi, eax
jne 0x47fc66
push 0
push 0
mov ecx, esi
call fcn.004ec500
test al, al
je 0x47fc5a
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
mov dword [esi + 0x18], edx
push 0xffffffffffffffff
mov edi, dword [ebx + 8]
mov ecx, ebx
lea eax, [edi + 1]
push eax
call fcn.0046d900
mov ecx, dword [ebx + 4]
mov dword [ecx + edi*4], esi
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x47fc02
mov edi, dword [esi + 0x1c0]
mov ecx, esi
call fcn.004eb780
mov ecx, dword [ebx + 0x24]
push eax
push edi
add ecx, 0x190
call fcn.004f9c90
test eax, eax
mov dword [ebp - 0x68], eax
je 0x47fc5a
xor edi, edi
mov dword [ebp - 0x3c], edi
mov ecx, dword [ebx + 0x24]
add ecx, 0x2e0
call fcn.004e3ac0
cmp edi, eax
jge 0x47fc5a
mov ecx, dword [ebx + 0x24]
push edi
add ecx, 0x2e0
call fcn.004e3ad0
mov edx, dword [ebp - 0x68]
mov ebx, eax
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 8], edx
jne 0x47fd22
lea ecx, [eax + 0x980]
call fcn.004b0a90
lea ecx, [esi + 0x1b8]
mov edi, eax
call fcn.004b0a90
mov eax, dword [eax]
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x47fd1f
push 1
push ebx
mov ecx, esi
call fcn.004ec500
test al, al
je 0x47fc57
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x144], 0x186a0
push 0
push esi
mov ecx, dword [ecx + 0x24]
call fcn.0045f920
test al, al
je 0x47fc57
jmp 0x47fc38
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x3c], edi
jmp 0x47fc8f
inc ecx
jmp 0x47fbe8
xor esi, esi
cmp esi, dword [ebp - 0x30]
jge 0x47fd5f
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x47fd56
test ecx, ecx
je 0x47fd5c
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
inc esi
jmp 0x47fd36
mov dword [ecx + 0x148], eax
inc esi
jmp 0x47fd36
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.0046d900
mov dword [ebp - 0x64], 0x5e2838
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 0xb
test edx, edx
je 0x47fd97
mov ecx, dword [ebp - 0x5c]
mov eax, edx
mov esi, ecx
dec ecx
test esi, esi
je 0x47fd8e
add eax, 4
jmp 0x47fd82
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebp - 4], 7
mov dword [ebp - 0x38], 0x5e2838
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x47fdb9
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebp - 0x38], 0x5e262c
xor esi, esi
mov dword [ebp - 0x50], 0x5e27fc
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
cmp eax, esi
je 0x47fddd
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], 0x5e262c
mov byte [ebp - 4], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0x10
call sub.mfc42u.dll_CListBox::CListBox
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call sub.mfc42u.dll_CStringArray::CStringArray
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.005c0d94
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4