Function at 0x40a320
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x18]
push edi
push esi
push ebx
sub esp, 0x7fc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x77c], edx
mov dword [ebp - 0x774], esp
mov dword [ebp - 0x7ac], eax
mov eax, sym.___gxx_personality_sj0
mov dword [ebp - 0x784], eax
mov eax, 0x4b27f6
mov dword [ebp - 0x780], eax
mov eax, 0x40aa16
mov dword [ebp - 0x778], eax
lea eax, [ebp - 0x79c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov eax, 0x200
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._memset
mov edx, dword [ebp - 0x7ac]
mov edx, dword [edx + 0x78]
test edx, edx
mov dword [ebp - 0x7b0], edx
jne 0x40aa00
mov eax, dword [ebp - 0x7ac]
mov edi, 0xffffffff
xor esi, esi
mov dword [ebp - 0x798], edi
mov ebx, 0x200
add eax, 0x84
mov dword [esp + 8], eax
mov eax, str._sconfigDenyPage
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym.im_dir_sprintf_char__char_const__..._
mov dword [esp], 0x220
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x7b4], eax
xor ecx, ecx
mov edx, dword [ebp - 0x7b4]
mov dword [ebp - 0x7b8], eax
add eax, 0x214
mov dword [edx + 0x214], esi
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], ebx
call sym._memset
cld
mov edi, dword [ebp - 0x7b4]
mov ecx, 5
mov eax, dword [ebp - 0x7b0]
mov edx, 0x1ff
add edi, 0x200
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x7b4]
lea edx, [ebp - 0x218]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, 3
mov dword [ebp - 0x798], eax
call sym._strncpy
mov edx, dword [ebp - 0x7b4]
mov eax, 0x13
mov dword [esp + 8], eax
mov eax, str.DenyPage
add edx, 0x200
mov dword [esp + 4], eax
mov dword [ebp - 0x7c0], edx
mov dword [esp], edx
call sym._strncpy
mov eax, dword [ebp - 0x7b4]
lea edx, [ebp - 0x548]
mov dword [esp], edx
mov dword [ebp - 0x7c4], eax
mov eax, 0x200
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym._memset
mov eax, dword [ebp - 0x7c0]
mov edx, dword [ebp - 0x7b4]
mov dword [esp + 0xc], eax
mov eax, 0x4b7799
mov dword [esp + 4], eax
lea eax, [ebp - 0x548]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x348]
lea edx, [ebp - 0x548]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.__findfirst
mov dword [ebp - 0x7c8], eax
inc eax
je 0x40a9cb
lea eax, [ebp - 0x748]
mov edi, 0x200
xor esi, esi
mov dword [esp + 8], edi
mov ebx, 0x4b77a0
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memset
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x7b4]
lea eax, [ebp - 0x334]
mov dword [esp + 0xc], eax
mov ecx, 3
lea eax, [ebp - 0x748]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x798], ecx
call sym._sprintf
lea edx, [ebp - 0x748]
mov dword [esp], edx
call sym._GetFileAttributesA_4
sub esp, 4
test al, 0x10
jne 0x40a75b
mov dword [esp], 0x210
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x7cc], eax
mov edx, dword [ebp - 0x7cc]
lea eax, [ebp - 0x748]
mov dword [esp + 4], eax
mov dword [esp], edx
mov edx, 2
mov dword [ebp - 0x798], edx
call method.DenyPage.DenyPage_char_const_
mov edx, dword [ebp - 0x7cc]
lea eax, [ebp - 0x7a8]
lea edi, [ebp - 0x768]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x7c4]
lea edx, [ebp - 0x334]
mov dword [esp], edx
mov dword [ebp - 0x7d0], eax
mov eax, 0x2e
mov dword [esp + 4], eax
call sym._strchr
mov dword [ebp - 0x7d4], eax
cld
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x7d4]
test eax, eax
je 0x40a708
lea eax, [ebp - 0x334]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x7c4]
mov edi, eax
lea ecx, [edx + 0x200]
mov ebx, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a628
test edx, 0x8080
jne 0x40a64d
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
cmp edi, ecx
jbe 0x40a708
mov edx, dword [ebp - 0x7d0]
lea eax, [ebp - 0x334]
mov edi, dword [ebp - 0x7d4]
lea ecx, [edx + 0x200]
sub edi, eax
mov ebx, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a678
test edx, 0x8080
jne 0x40a69d
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
mov ebx, edi
sub ebx, ecx
lea eax, [ebx - 1]
cmp eax, 0x12
ja 0x40a708
mov eax, dword [ebp - 0x7d0]
lea ecx, [eax + 0x200]
mov edi, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a6be
test edx, 0x8080
jne 0x40a6e3
shr edx, 0x10
add ecx, 2
mov dword [esp + 8], ebx
add dl, dl
lea eax, [ebp - 0x334]
sbb ecx, 3
lea edx, [ebp - 0x768]
sub ecx, edi
mov dword [esp], edx
add eax, ecx
mov dword [esp + 4], eax
call sym._memcpy
lea eax, [ebp - 0x768]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x7a8], eax
mov esi, dword [ebp - 0x7a4]
test esi, esi
je 0x40a75b
test eax, eax
jle 0x40a75b
mov edi, dword [ebp - 0x7c4]
add edi, 0x214
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x40aac3
test ecx, ecx
je 0x40a757
mov eax, dword [ebp - 0x7a8]
mov edx, dword [ebp - 0x7a4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add dword [edi + 4], 8
mov edx, dword [ebp - 0x7c8]
lea eax, [ebp - 0x348]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.__findnext
test eax, eax
jne 0x40a925
lea eax, [ebp - 0x334]
mov edx, dword [ebp - 0x7c4]
mov dword [esp + 0xc], eax
mov eax, 0x4b77a0
mov dword [esp + 4], eax
lea eax, [ebp - 0x748]
mov dword [esp], eax
mov eax, 3
mov dword [esp + 8], edx
mov dword [ebp - 0x798], eax
call sym._sprintf
lea edx, [ebp - 0x748]
mov dword [esp], edx
call sym._GetFileAttributesA_4
sub esp, 4
test al, 0x10
jne 0x40a75b
mov dword [esp], 0x210
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x7d8], eax
mov edx, dword [ebp - 0x7d8]
lea eax, [ebp - 0x748]
mov dword [esp + 4], eax
mov eax, 1
mov dword [esp], edx
mov dword [ebp - 0x798], eax
call method.DenyPage.DenyPage_char_const_
mov edx, dword [ebp - 0x7d8]
lea eax, [ebp - 0x7a8]
lea edi, [ebp - 0x768]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x7c4]
lea edx, [ebp - 0x334]
mov dword [esp], edx
mov dword [ebp - 0x7dc], eax
mov eax, 0x2e
mov dword [esp + 4], eax
call sym._strchr
mov dword [ebp - 0x7e0], eax
cld
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x7e0]
test edi, edi
je 0x40a708
lea eax, [ebp - 0x334]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x7c4]
mov ebx, eax
lea ecx, [edx + 0x200]
mov edi, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a86f
test edx, 0x8080
jne 0x40a894
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, edi
cmp ebx, ecx
jbe 0x40a708
mov edx, dword [ebp - 0x7dc]
lea eax, [ebp - 0x334]
mov edi, dword [ebp - 0x7e0]
lea ecx, [edx + 0x200]
sub edi, eax
mov ebx, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a8bf
test edx, 0x8080
jne 0x40a8e4
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
mov ebx, edi
sub ebx, ecx
lea eax, [ebx - 1]
cmp eax, 0x12
ja 0x40a708
mov eax, dword [ebp - 0x7dc]
lea ecx, [eax + 0x200]
mov edi, ecx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a909
jmp 0x40a6d5
mov eax, dword [ebp - 0x7c8]
mov dword [esp], eax
call sym.__findclose
mov edx, dword [ebp - 0x7c4]
mov eax, dword [ebp - 0x7c4]
mov edx, dword [edx + 0x214]
mov eax, dword [eax + 0x218]
mov dword [ebp - 0x7e4], edx
cmp edx, eax
mov dword [ebp - 0x7e8], eax
je 0x40a9cb
mov ecx, dword [ebp - 0x7e4]
mov edx, eax
xor eax, eax
sub edx, ecx
sar edx, 3
jmp 0x40a973
inc eax
sar edx, 1
cmp edx, 1
jne 0x40a970
add eax, eax
mov edx, sym.SortCONFPTR_CONFPTR_const__CONFPTR_const_
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x7e4]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x7e8]
mov dword [esp], eax
mov eax, 3
mov dword [esp + 4], edx
mov dword [ebp - 0x798], eax
call method.void_std::__introsort_loop___gnu_cxx::__normal_iterator_CONFPTR__std::vector_CONFPTR__std.allocator_CONFPTR_______int__bool____CONFPTR_const__CONFPTR_const_____gnu_cxx::__normal_iterator_CONFPTR__std::vector_CONFPTR__std::allocator_CONFPTR____
mov eax, sym.SortCONFPTR_CONFPTR_const__CONFPTR_const_
mov edx, dword [ebp - 0x7e8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x7e4]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.void_std::__final_insertion_sort___gnu_cxx::__normal_iterator_CONFPTR__std::vector_CONFPTR__std.allocator_CONFPTR_______bool____CONFPTR_const__CONFPTR_const_____gnu_cxx::__normal_iterator_CONFPTR__std::vector_CONFPTR__std::allocator_CONFPTR___
mov eax, dword [ebp - 0x7b4]
mov edx, dword [ebp - 0x7ac]
mov dword [edx + 0x78], eax
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
mov eax, 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x798], eax
call method.IMCfg.addDirectory_char_const_
mov esi, esi
lea edi, [edi]
lea eax, [ebp - 0x79c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x7c4]
mov ebx, 3
mov edx, dword [eax + 0x218]
mov dword [esp], edi
lea eax, [ebp - 0x7a8]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x798], ebx
call method.std::vector_CONFPTR__std::allocator_CONFPTR___._M_insert_aux___gnu_cxx::__normal_iterator_CONFPTR__std::vector_CONFPTR__std::allocator_CONFPTR_______CONFPTR_const_
jmp 0x40a75b