Function at 0x407670
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b245
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x9d0
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x14], al
lea edx, [ebx + 8]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 1
call fcn.00497bf0
add esp, 4
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00407130
add esp, 4
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
movq qword [ebp - 0xf4], xmm0
mov esi, dword [ebp - 0xf4]
test edx, edx
je 0x407706
cmp esi, 1
je 0x407706
cmp esi, 9
jne 0x4080ab
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0048f0e0
cmp esi, 3
jne 0x408022
cmp dword [ebx + 0x30], 0
jne 0x407882
mov byte [ebp - 0x14], 0
lea edx, [ebx + 8]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.00497bf0
add esp, 4
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.00404c20
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00490580
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 4
jb 0x407791
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [eax + ecx], 0x70697a2e
mov byte [eax + ecx + 4], 0
lea eax, [ebp - 0x34]
jmp 0x4077a9
push 4
push str..zip
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
push 4
call fcn.00492b30
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, 0x500
mov ecx, dword [ebx + 0x34]
movq qword [ebp - 0xa8], xmm1
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0xf8], xmm0
cmp ecx, 0x10
jb 0x40781c
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407803
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push ecx
push edx
call fcn.00504f31
movups xmm0, xmmword [ebp - 0xf8]
add esp, 8
movq xmm1, qword [ebp - 0xa8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
movq qword [ebx + 0x30], xmm1
movups xmmword [ebx + 0x20], xmm0
cmp ecx, 0x10
jb 0x40785d
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407853
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push ecx
push edx
call fcn.00504f31
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.0048f0e0
lea ecx, [ebp - 0x54]
call fcn.0048f0e0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x20]
cmp dword [ebx + 0x34], 0x10
cmovae ecx, dword [ebx + 0x20]
sub esp, 8
xor edx, edx
push edi
call fcn.004b1270
add esp, 0xc
mov byte [ebp - 0x14], 0
mov edi, eax
lea edx, [ebx + 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x3c], edi
push dword [ebp - 0x14]
call fcn.00497bf0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x60]
call fcn.004907d0
add esp, 4
test eax, eax
jne 0x4080be
lea ecx, [ebp - 0x54]
call fcn.0048f0e0
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x4078ff
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x407910
lock inc dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0xa4], xmm0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
test ecx, ecx
je 0x407953
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x407953
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x407953
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x407f8c
lea eax, [ebp - 0xc0]
lea ecx, [esi + 0x20]
push eax
call fcn.00404970
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xc0]
cmp dword [ebp - 0xac], 0x10
cmovae eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
lea edx, [ebx + 8]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0xd8]
push dword [ebp - 0x14]
and al, 1
mov dword [ebp - 0x58], eax
call fcn.00497bf0
add esp, 4
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0xc0]
push dword [ebp - 0x88]
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xe
call fcn.00497bf0
add esp, 4
lea edx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x84]
call fcn.00407580
lea edx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x54]
call fcn.00407580
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00405320
or dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x54]
call fcn.0048f0e0
lea ecx, [ebp - 0x84]
call fcn.0048f0e0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00404970
lea ecx, [ebp - 0x1c8]
call fcn.0048f0e0
lea ecx, [ebp - 0x1e0]
call fcn.0048f0e0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.0048f0e0
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
nop dword [eax + eax]
push 1
cmp esi, 0x10
lea ecx, [ebp - 0x34]
push 0x54c810
cmovae ecx, eax
mov edx, edi
push 0
setae byte [ebp - 0x15]
call fcn.00492370
add esp, 0xc
cmp eax, 0xffffffff
je 0x407bce
xorps xmm0, xmm0
mov dword [ebp - 0x74], 1
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0xf
mov word [ebp - 0x84], 0x5c
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0xf
mov word [ebp - 0x54], 0x2f
cmp esi, 0x10
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
cmovae ecx, eax
lea edx, [ebp - 0x54]
mov dword [ebp - 0x94], ecx
cmp edi, 1
jb 0x407b8a
movsx edx, byte [edx]
lea eax, [edi + ecx]
mov dword [ebp - 0x8c], eax
sub eax, ecx
push eax
push edx
push ecx
mov dword [ebp - 0x90], edx
call fcn.00508700
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407b84
nop dword [eax]
mov al, byte [edi]
lea ecx, [ebp - 0x54]
cmp al, byte [ecx]
je 0x407b30
sbb eax, eax
or eax, 1
jmp 0x407b32
xor eax, eax
test eax, eax
je 0x407b57
mov eax, dword [ebp - 0x8c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x90]
push edi
call fcn.00508700
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407b20
jmp 0x407b81
sub edi, dword [ebp - 0x94]
cmp edi, 0xffffffff
je 0x407b81
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push 1
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x34]
push eax
push 1
push edi
call fcn.0048f3f0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x70]
cmp ecx, 0x10
jb 0x407a70
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407bbf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push ecx
push edx
call fcn.00504f31
add esp, 8
jmp 0x407a62
cmp byte [ebp - 0x58], 0
mov edx, 0x54c814
mov eax, 0x5443dc
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407be4
mov eax, closesocket
sub ecx, esi
sub eax, edi
cmp eax, ecx
jb 0x4080d5
cmp byte [ebp - 0x15], 0
lea eax, [ebp - 0x34]
push ecx
cmovne eax, dword [ebp - 0x34]
push edx
push edi
push eax
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x54]
call fcn.004946d0
or dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0x19
lea esi, [ebp - 0x54]
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x64]
cmovae esi, ecx
test edi, edi
je 0x407ce0
cmp byte [ebp - 0x38], 0
je 0x407c50
push ecx
mov ecx, edi
call fcn.004b1e10
add esp, 4
mov byte [ebp - 0x38], 0
nop
mov al, byte [esi]
cmp al, 0x5c
je 0x407c5a
cmp al, 0x2f
jne 0x407c5d
inc esi
jmp 0x407c50
xorps xmm0, xmm0
lea eax, [ebp - 0xf0]
push eax
movups xmmword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0xd0], xmm0
call fcn.00512ec9
add esp, 4
lea eax, [ebp - 0xf0]
push eax
call fcn.005131c2
sub esp, 0x3c
mov edx, esi
mov ecx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xd4], ecx
mov ecx, edi
push eax
call fcn.004b1740
mov edx, dword [ebp - 0x40]
add esp, 0x44
mov ecx, dword [ebp - 0x54]
test eax, eax
sete byte [ebp - 0x38]
mov byte [ebp - 4], 0x16
cmp edx, 0x10
jb 0x407d12
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407d08
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push edx
push ecx
call fcn.00504f31
add esp, 8
mov dword [ebp - 0x1b0], 0x54ca1c
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1c]
sub esp, 8
or eax, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.0048ef30
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1b4], eax
lea ecx, [ebp - 0x1a0]
call fcn.0048ed80
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xc0]
cmp dword [ebp - 0xac], 0x10
lea ecx, [ebp - 0x1a0]
cmovae eax, dword [ebp - 0xc0]
sub esp, 8
push eax
call fcn.0048fd20
test eax, eax
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
je 0x407df5
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x407e0a
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00403fc0
cmp byte [ebp - 0x38], 0
je 0x407e76
nop dword [eax + eax]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1a4], 0
jne 0x407e67
sub esp, 8
lea eax, [ebp - 0x9e0]
lea ecx, [ebp - 0x1b0]
push eax
call fcn.0048bb50
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x407e67
push eax
lea edx, [ebp - 0x9e0]
mov ecx, edi
call fcn.004b1cc0
add esp, 4
test eax, eax
je 0x407e20
push ecx
mov ecx, edi
call fcn.004b1e10
add esp, 4
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1b4], eax
lea ecx, [ebp - 0x1a0]
call fcn.0048b6c0
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1b4], eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0x1d
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00503d8c
mov byte [ebp - 4], 0xd
add esp, 4
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x407f24
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0x10
jb 0x407f74
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080b9
push ecx
push edx
call fcn.00504f31
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00406a60
test eax, eax
jne 0x4080ce
mov esi, dword [ebp - 0x6c]
jmp 0x407957
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x407fb4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407fb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407fb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x407fe0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407fe0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407fe0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x408002
cmp byte [ebp - 0x38], 0
je 0x407ff9
push ecx
mov ecx, edi
call fcn.004b1e10
add esp, 4
mov byte [ebp - 0x38], 0
mov ecx, edi
call fcn.004b2ad0
xor edi, edi
mov byte [ebp - 4], 0x1e
test edi, edi
je 0x408022
cmp byte [ebp - 0x38], 0
je 0x40801b
push ecx
mov ecx, edi
call fcn.004b1e10
add esp, 4
mov ecx, edi
call fcn.004b2ad0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x408056
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40804c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080da
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x408098
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40808e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080da
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x54]
mov ecx, str.status
push eax
call fcn.00406700
call fcn.0050a1d0
lea ecx, [ebp - 0x54]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.00406700
mov edx, eax
call fcn.004065e0
call fcn.004024b0
call fcn.0050a1d0
int3