Function at 0x470c50
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57215f
push eax
mov eax, dword [0x5e5d28]
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x470c81
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x470c8b
mov eax, 0x80004005
jmp 0x471057
mov dword [esp + 0x10], ebp
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x58], ebp
call dword [eax + 0xc0]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x470cb3
mov eax, 0x80004005
jmp 0x471057
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov dword [esp + 0x1c], ebp
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x50], 1
mov dword [esp + 0x30], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 2
cmp eax, ebp
mov byte [esp + 0x50], bl
jne 0x470d3e
cmp dword [0x5e5d2c], ebp
jne 0x470d3e
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebp
mov byte [esp + 0x50], 3
je 0x470d14
mov ecx, eax
call fcn.00464f50
jmp 0x470d16
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x58], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x50], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x470d8a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
cmp eax, ebp
je 0x470dd3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004005
jmp 0x471057
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov ecx, dword [eax]
push edx
push 0x5d0be0
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x50], 4
cmp eax, ebp
jne 0x470ddd
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x50], 0
cmp eax, ebp
je 0x470dbd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
cmp eax, ebp
je 0x470dd3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004005
jmp 0x471057
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x98]
cmp dword [esp + 0x28], ebp
je 0x470e00
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.00489a30
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
cmp eax, ebp
je 0x470e37
mov eax, dword [ecx + 4]
cmp eax, ebp
je 0x470e37
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 4
cmp edx, 1
jbe 0x470e37
mov dword [esp + 0x14], ebp
mov edi, 1
xor ebx, ebx
mov eax, dword [ecx + 4]
test eax, eax
je 0x470f1b
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x470f1b
mov dl, byte [ebx + eax]
lea esi, [ebx + eax]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x50], 5
test eax, eax
jne 0x470e96
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x470ebd
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x470eae
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x20]
push edi
push eax
call fcn.00489380
xor edi, edi
jmp 0x470efd
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x3c]
je 0x470edf
test eax, eax
jne 0x470ed2
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x20]
push edi
push eax
call fcn.00488f90
jmp 0x470ef5
test eax, eax
jne 0x470ee8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x20]
push edi
push eax
call fcn.00489380
xor edi, edi
mov dword [esp + 0x14], 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
inc ebp
add ebx, 0x10
mov ecx, dword [esp + 0x5c]
jmp 0x470e3e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
test esi, esi
jle 0x471019
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString_3
push esi
lea edx, [esp + 0x60]
push 0x5d7978
push edx
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x5ed8e0]
add esp, 0xc
mov ecx, 0x5ed8e0
mov dword [esp + 0x34], 0x5ed8e0
call dword [eax + 4]
mov eax, dword [0x5e5d38]
mov bl, 7
test eax, eax
mov byte [esp + 0x50], bl
jne 0x470fe6
mov eax, dword [0x5e5d34]
test eax, eax
jne 0x470fe6
push 0x13e4
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
mov byte [esp + 0x50], 8
je 0x470fba
mov ecx, esi
call fcn.005274b0
mov dword [esi], vtable.CComObjectNoRef_class_CMPSContainer_.1.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CMPSContainer_.0
jmp 0x470fbc
xor esi, esi
mov ecx, dword [0x5cf9c0]
mov byte [esp + 0x50], bl
push ecx
push 0x41dae0
mov ecx, 0x5eafa0
mov dword [0x5e5d34], esi
call fcn.00406600
mov dword [0x5e5d38], 1
mov edx, dword [0x5ed8e0]
mov esi, dword [0x5e5d34]
mov ecx, 0x5ed8e0
mov byte [esp + 0x50], 6
call dword [edx + 8]
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call fcn.00528bc0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov byte [esp + 0x50], 1
test eax, eax
je 0x47102c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x50], 0
test eax, eax
je 0x47103f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x471055
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8