Function at 0x4043e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0x1a4
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x174], sym.___gxx_personality_sj0
mov dword [ebp - 0x170], 0x4e0d8e
mov dword [ebp - 0x168], 0x404714
mov dword [ebp - 0x164], esp
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
lea eax, [ebp - 0x148]
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x148], 0
mov dword [esp], eax
mov dword [ebp - 0x188], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_assign_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x14c]
sub esp, 4
cmp eax, 5
jbe 0x4046e6
mov dword [esp + 4], 6
lea ecx, [ebp - 0x150]
mov dword [esp], str..exe
mov dword [ebp - 0x188], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
sub esp, 8
lea edx, [ebp - 0x120]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findfirst]
mov dword [ebp - 0x194], eax
cmp eax, 0xffffffff
je 0x4046da
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4046a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x150]
mov dword [esp], eax
mov dword [ebp - 0x188], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_assign_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
cmp dword [ebp - 0x14c], 0x3fffffff
je 0x404708
mov dword [esp + 4], 1
lea ecx, [ebp - 0x150]
mov dword [esp], 0x4e6364
mov dword [ebp - 0x188], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
sub esp, 8
lea ecx, [ebp - 0x10c]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
and edx, 0x80808080
je 0x404528
mov ebx, edx
shr ebx, 0x10
test edx, 0x8080
cmove edx, ebx
lea ebx, [ecx + 2]
cmove ecx, ebx
mov ebx, edx
add bl, dl
lea ebx, [ebp - 0x10c]
mov edx, 0x3fffffff
sbb ecx, 3
sub edx, dword [eax + 4]
sub ecx, ebx
cmp ecx, edx
ja 0x4046f2
lea edx, [ebp - 0x10c]
mov dword [esp + 4], ecx
mov ecx, eax
mov dword [esp], edx
mov dword [ebp - 0x188], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
sub esp, 8
lea ebx, [ebp - 0x130]
mov dword [ebp - 0x138], ebx
mov edx, dword [eax]
mov byte [esp + 8], 0
mov ecx, dword [eax + 4]
mov dword [esp], edx
add ecx, edx
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x138]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
mov eax, dword [ebp - 0x138]
sub esp, 0xc
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [esp], eax
mov dword [ebp - 0x188], 2
call sym.operator_new___unsigned_int_
mov ebx, eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [ebp - 0x190], ebx
mov dword [esp], ebx
call sym._strcpy
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
test al, 2
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
je 0x404680
call sym.operator_delete_void__unsigned_int_
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x404645
mov dword [esp], eax
call sym.operator_delete_void_
mov byte [ebp - 0x190], 1
mov eax, dword [ebp - 0x150]
lea ebx, [ebp - 0x148]
cmp eax, ebx
je 0x404664
mov dword [esp], eax
call sym.operator_delete_void_
lea eax, [ebp - 0x18c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
movzx eax, byte [ebp - 0x190]
mov ebx, dword [ebp - 4]
leave
ret
call sym.operator_delete_void__unsigned_int_
mov eax, dword [ebp - 0x138]
lea ebx, [ebp - 0x130]
cmp eax, ebx
je 0x4046a0
mov dword [esp], eax
call sym.operator_delete_void_
lea esi, [esi]
lea eax, [ebp - 0x120]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
mov dword [ebp - 0x188], 1
call dword [sym.imp.msvcrt.dll__findnext]
test eax, eax
je 0x4044bf
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
mov byte [ebp - 0x190], 0
jmp 0x40464c
mov dword [esp], 0x4e6348
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4e6348
mov dword [ebp - 0x188], 1
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4e6348
call method.std.__throw_length_error_char_const_
add ebp, 8
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x188]
test eax, eax
jne 0x40475d
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x148]
cmp eax, edx
je 0x404745
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
mov dword [ebp - 0x188], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub eax, 1
jne 0x40477c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x40472d
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x40472d
ud2