Function at 0x403570
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40cf50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ecx
lea eax, [ebp + 0x28]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [ebp + 0x4c], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x413688
call fcn.00402d00
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x38]
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x54], ecx
neg edi
sbb edi, edi
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jle 0x403858
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 6
call sub.MFC42.DLL_CString::CString_2
cmp edi, 0xffffffff
mov byte [esp + 0x54], 7
mov esi, edi
jne 0x403656
mov edx, dword [ebp + 0x34]
xor eax, eax
test edx, edx
jbe 0x403656
mov ecx, dword [ebp + 0x30]
mov esi, dword [ecx]
test esi, esi
jne 0x403656
inc eax
add ecx, 4
cmp eax, edx
jb 0x403648
mov edi, dword [esi]
test edi, edi
jne 0x40367b
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x34]
inc eax
cmp eax, edx
jae 0x40367b
mov ecx, dword [ebp + 0x30]
lea ecx, [ecx + eax*4]
mov edi, dword [ecx]
test edi, edi
jne 0x40367b
inc eax
add ecx, 4
cmp eax, edx
jb 0x40366d
lea edx, [esi + 8]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
add esi, 0xc
lea ecx, [esp + 0x30]
push esi
call fcn.00402220
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x60], 8
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x48]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x60], 7
mov ecx, dword [ecx + 0xc]
call fcn.00404b20
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41303c
push edx
call esi
add esp, 8
test eax, eax
jne 0x40370e
lea eax, [esp + 0x38]
push eax
jmp 0x403713
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x403775
mov eax, dword [esp + 0x30]
push 0x413068
push eax
call esi
add esp, 8
test eax, eax
je 0x403775
push 0x5c
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [ebp + 0x2c]
mov ebx, eax
call fcn.00404480
mov esi, eax
test esi, esi
jne 0x4037d5
mov eax, dword [ebp + 0x30]
lea esi, [ebp + 0x2c]
test eax, eax
jne 0x4037a6
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.004043a0
mov ecx, esi
call fcn.00404410
mov ecx, dword [esp + 0x14]
mov esi, eax
push ebx
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov dword [esi], ecx
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [edx + eax*4], esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0xc]
call fcn.00402220
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4035d3
mov eax, dword [ebp + 0x38]
mov edi, eax
neg edi
sbb edi, edi
xor ebx, ebx
test eax, eax
jle 0x4039fd
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0x10
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0x11
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0x12
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0x13
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0x14
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0x15
call sub.MFC42.DLL_CString::CString_2
cmp edi, 0xffffffff
mov byte [esp + 0x54], 0x16
mov esi, edi
jne 0x4038ee
mov edx, dword [ebp + 0x34]
xor eax, eax
test edx, edx
jbe 0x4038ee
mov ecx, dword [ebp + 0x30]
mov esi, dword [ecx]
test esi, esi
jne 0x4038ee
inc eax
add ecx, 4
cmp eax, edx
jb 0x4038e0
mov edi, dword [esi]
test edi, edi
jne 0x403913
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x34]
inc eax
cmp eax, edx
jae 0x403913
mov ecx, dword [ebp + 0x30]
lea ecx, [ecx + eax*4]
mov edi, dword [ecx]
test edi, edi
jne 0x403913
inc eax
add ecx, 4
cmp eax, edx
jb 0x403905
lea edx, [esi + 8]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
add esi, 0xc
lea ecx, [esp + 0x30]
push esi
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 4]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esi + 0xc]
lea ecx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x10]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esi + 0x14]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esi + 0x18]
push 1
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov dword [esp + 0x54], edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004024f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x38]
inc ebx
cmp ebx, eax
jl 0x40386b
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret