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

Disassembly:
push 0xffffffffffffffff
push 0x418a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
xor ebx, ebx
add eax, 0xc
mov ecx, edi
push eax
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::operator_1
push edi
mov ecx, esi
call fcn.004107a0
test eax, eax
je 0x41077d
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 4]
push edi
push ecx
add edx, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x30], ebx
call fcn.004171fe
mov ecx, esi
call fcn.0040ff80
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
mov dword [ecx + 0x58], eax
mov edx, dword [esi + 4]
cmp dword [edx + 0x58], ebx
jne 0x4105b0
mov eax, dword [edi]
push eax
call ebp
mov ecx, dword [esi + 4]
mov dword [ecx + 0x58], eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x58]
cmp eax, ebx
je 0x4105d7
mov ecx, dword [esi + 0x4dc]
cmp dword [ecx + 0x3ac], ebx
jne 0x4106a1
mov dword [ecx + 0x3ac], eax
jmp 0x4106a1
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.00412360
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x410672
mov bl, 2
push eax
call ebp
mov ecx, dword [esi + 4]
mov dword [ecx + 0x58], eax
mov edx, dword [esi + 4]
cmp dword [edx + 0x58], 0xffffffff
jne 0x410698
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, esi
call fcn.00412360
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41060c
push 0x194
mov ecx, esi
call fcn.00410ed0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
jmp 0x41078b
mov eax, dword [esi + 4]
test byte [eax + 0x58], 0x10
jne 0x410672
mov eax, dword [edi]
mov dword [esp + 0x10], 1
mov ecx, dword [eax - 8]
mov cl, byte [eax + ecx - 1]
cmp cl, 0x5c
jne 0x4106e9
mov eax, dword [eax - 8]
lea ecx, [esp + 0x18]
dec eax
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esi + 4]
push eax
add ecx, 0x4c
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
jmp 0x4106f5
mov ecx, dword [esi + 4]
push edi
add ecx, 0x4c
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 8]
test eax, eax
je 0x41072d
mov ecx, dword [esi + 4]
lea eax, [esp + 0x2c]
push eax
add ecx, 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004107a0
test eax, eax
je 0x41072d
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 4]
test byte [eax + 0x58], 0x10
je 0x410759
push 0
push 0x73
mov ecx, esi
call fcn.00412440
test eax, eax
jne 0x41067e
push 1
push 0x77
mov ecx, esi
call fcn.00412440
jmp 0x41067e
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x41067e
mov ecx, esi
call fcn.00412630
test eax, eax
jne 0x41067e
push 0x190
jmp 0x410677
push 0x190
mov ecx, esi
call fcn.00410ed0
mov eax, ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4