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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c79d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
push esi
mov dword [ebp - 0x2c], ecx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esp
call fcn.0040abe0
xor edi, edi
push 0xa
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x5e788c
call fcn.0046d900
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CString::CString_3
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
lea esi, [eax + 0x190]
mov ecx, esi
call fcn.004f8140
cmp edi, eax
jge 0x437dae
lea ecx, [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.004f81c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.mfc42u.dll_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call sub.mfc42u.dll_CString::CString
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437da8
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push 0
push ecx
call fcn.004d9910
add esp, 0xc
cmp esi, dword [ebp - 0x20]
jge 0x437da8
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x148], edi
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + esi*4]
call fcn.004eb780
mov ecx, dword [ebx]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x437da5
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [eax + esi*4]
lea ecx, [eax + 0x1b8]
call fcn.004b0980
inc esi
jmp 0x437d61
inc edi
jmp 0x437d00
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x84]
push eax
push 0x61a728
push ecx
call sub.mfc42u.dll_CString::Format_1
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x444]
push 0x1001
push edx
call fcn.004b4ed0
mov edx, dword [ebp - 0x444]
lea eax, [ebp + 8]
push 4
push eax
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 5
mov byte [ebp - 0x434], 1
mov dword [ebp + 8], 1
call dword [edx + 0x40]
mov edx, dword [ebp - 0x444]
lea eax, [ebp + 8]
xor esi, esi
push 4
push eax
lea ecx, [ebp - 0x444]
mov dword [ebp + 8], esi
call dword [edx + 0x40]
mov edx, dword [ebp - 0x444]
lea eax, [ebp + 8]
push 4
push eax
lea ecx, [ebp - 0x444]
mov dword [ebp + 8], esi
call dword [edx + 0x40]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x444]
lea ecx, [ebp + 8]
push 4
push ecx
lea ecx, [ebp - 0x444]
mov dword [ebp + 8], eax
call dword [edx + 0x40]
cmp esi, dword [ebp - 0x20]
jge 0x437e75
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + esi*4]
mov edx, dword [eax + 0xc0]
lea ecx, [eax + 0xc0]
lea eax, [ebp - 0x444]
push eax
call dword [edx + 0x48]
inc esi
jmp 0x437e51
lea ecx, [ebp - 0x444]
call sub.mfc42u.dll_CFile::Close
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 3
call fcn.004b4f00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CString::CString
mov eax, dword [ebp - 0x20]
xor esi, esi
test eax, eax
mov dword [ebp - 4], 1
jle 0x437ec4
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x437ebc
mov edx, dword [ecx]
push 1
call dword [edx + 0x28]
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, eax
jl 0x437eab
push 0xa
push 0
lea ecx, [ebp - 0x28]
call fcn.0046d900
mov dword [ebp - 0x28], 0x5e2838
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 7
test eax, eax
je 0x437eee
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8