Function at 0x407510
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 0x51df05
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.0048aa70
add esp, 4
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00406fd0
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 0x4075a6
cmp esi, 1
je 0x4075a6
cmp esi, 9
jne 0x407f4b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00481fb0
cmp esi, 3
jne 0x407ec2
cmp dword [ebx + 0x30], 0
jne 0x407722
mov byte [ebp - 0x14], 0
lea edx, [ebx + 8]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.0048aa70
add esp, 4
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.00404ac0
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00483450
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 0x407631
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 0x407649
push 4
push str..zip
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
push 4
call fcn.004859b0
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 0x4076bc
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4076a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push ecx
push edx
call fcn.004f7c11
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 0x4076fd
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4076f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push ecx
push edx
call fcn.004f7c11
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00481fb0
lea ecx, [ebp - 0x54]
call fcn.00481fb0
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.004a3f30
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.0048aa70
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.004836a0
add esp, 4
test eax, eax
jne 0x407f5e
lea ecx, [ebp - 0x54]
call fcn.00481fb0
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40779f
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x4077b0
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 0x4077f3
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4077f3
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x4077f3
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x407e2c
lea eax, [ebp - 0xc0]
lea ecx, [esi + 0x20]
push eax
call fcn.00404810
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.0048aa70
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.0048aa70
add esp, 4
lea edx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x84]
call fcn.00407420
lea edx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x54]
call fcn.00407420
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x84]
call fcn.004051c0
or dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x54]
call fcn.00481fb0
lea ecx, [ebp - 0x84]
call fcn.00481fb0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00404810
lea ecx, [ebp - 0x1c8]
call fcn.00481fb0
lea ecx, [ebp - 0x1e0]
call fcn.00481fb0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.00481fb0
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 0x53e918
cmovae ecx, eax
mov edx, edi
push 0
setae byte [ebp - 0x15]
call fcn.004851f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x407a6e
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 0x407a2a
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.004fb3e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407a24
nop dword [eax]
mov al, byte [edi]
lea ecx, [ebp - 0x54]
cmp al, byte [ecx]
je 0x4079d0
sbb eax, eax
or eax, 1
jmp 0x4079d2
xor eax, eax
test eax, eax
je 0x4079f7
mov eax, dword [ebp - 0x8c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x90]
push edi
call fcn.004fb3e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4079c0
jmp 0x407a21
sub edi, dword [ebp - 0x94]
cmp edi, 0xffffffff
je 0x407a21
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.004822c0
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 0x407910
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407a5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push ecx
push edx
call fcn.004f7c11
add esp, 8
jmp 0x407902
cmp byte [ebp - 0x58], 0
mov edx, 0x53e91c
mov eax, 0x5363dc
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407a84
mov eax, closesocket
sub ecx, esi
sub eax, edi
cmp eax, ecx
jb 0x407f75
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.00487550
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 0x407b80
cmp byte [ebp - 0x38], 0
je 0x407af0
push ecx
mov ecx, edi
call fcn.004a4ad0
add esp, 4
mov byte [ebp - 0x38], 0
nop
mov al, byte [esi]
cmp al, 0x5c
je 0x407afa
cmp al, 0x2f
jne 0x407afd
inc esi
jmp 0x407af0
xorps xmm0, xmm0
lea eax, [ebp - 0xf0]
push eax
movups xmmword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0xd0], xmm0
call fcn.00505bab
add esp, 4
lea eax, [ebp - 0xf0]
push eax
call fcn.00505ea4
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.004a4400
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 0x407bb2
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407ba8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push edx
push ecx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x1b0], 0x53eb24
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.00481e00
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.00481c50
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.00482bf0
test eax, eax
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
je 0x407c95
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x407caa
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.00403e60
cmp byte [ebp - 0x38], 0
je 0x407d16
nop dword [eax + eax]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1a4], 0
jne 0x407d07
sub esp, 8
lea eax, [ebp - 0x9e0]
lea ecx, [ebp - 0x1b0]
push eax
call fcn.0047e960
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x407d07
push eax
lea edx, [ebp - 0x9e0]
mov ecx, edi
call fcn.004a4980
add esp, 4
test eax, eax
je 0x407cc0
push ecx
mov ecx, edi
call fcn.004a4ad0
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.0047e4d0
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.004f6a6c
mov byte [ebp - 4], 0xd
add esp, 4
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x407dc4
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407dba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push ecx
push edx
call fcn.004f7c11
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 0x407e14
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407e0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f59
push ecx
push edx
call fcn.004f7c11
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00406900
test eax, eax
jne 0x407f6e
mov esi, dword [ebp - 0x6c]
jmp 0x4077f7
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x407e54
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407e54
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407e54
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 0x407e80
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407e80
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407e80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x407ea2
cmp byte [ebp - 0x38], 0
je 0x407e99
push ecx
mov ecx, edi
call fcn.004a4ad0
add esp, 4
mov byte [ebp - 0x38], 0
mov ecx, edi
call fcn.004a5790
xor edi, edi
mov byte [ebp - 4], 0x1e
test edi, edi
je 0x407ec2
cmp byte [ebp - 0x38], 0
je 0x407ebb
push ecx
mov ecx, edi
call fcn.004a4ad0
add esp, 4
mov ecx, edi
call fcn.004a5790
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x407ef6
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407eec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f7a
push ecx
push edx
call fcn.004f7c11
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 0x407f38
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f7a
push ecx
push edx
call fcn.004f7c11
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.004065a0
call fcn.004fceb0
lea ecx, [ebp - 0x54]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.004065a0
mov edx, eax
call fcn.00406480
call fcn.00402390
call fcn.004fceb0
int3