Function at 0x407220
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 0x5033a5
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.00470da0
add esp, 4
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00406ce0
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 0x4072b6
cmp esi, 1
je 0x4072b6
cmp esi, 9
jne 0x407c5b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00468230
cmp esi, 3
jne 0x407bd2
cmp dword [ebx + 0x30], 0
jne 0x407432
mov byte [ebp - 0x14], 0
lea edx, [ebx + 8]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.00470da0
add esp, 4
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.004047d0
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00469700
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 0x407341
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 0x407359
push 4
push str..zip
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
push 4
call fcn.0046bc40
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 0x4073cc
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4073b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push ecx
push edx
call fcn.004dd0b2
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 0x40740d
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407403
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push ecx
push edx
call fcn.004dd0b2
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00468230
lea ecx, [ebp - 0x54]
call fcn.00468230
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.004894e0
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.00470da0
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.00469950
add esp, 4
test eax, eax
jne 0x407c6e
lea ecx, [ebp - 0x54]
call fcn.00468230
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x4074af
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x4074c0
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 0x407503
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x407503
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x407503
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x407b3c
lea eax, [ebp - 0xc0]
lea ecx, [esi + 0x20]
push eax
call fcn.00404520
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.00470da0
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.00470da0
add esp, 4
lea edx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x84]
call fcn.00407130
lea edx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x54]
call fcn.00407130
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00404ed0
or dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x54]
call fcn.00468230
lea ecx, [ebp - 0x84]
call fcn.00468230
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00404520
lea ecx, [ebp - 0x1c8]
call fcn.00468230
lea ecx, [ebp - 0x1e0]
call fcn.00468230
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.00468230
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 0x5207fc
cmovae ecx, eax
mov edx, edi
push 0
setae byte [ebp - 0x15]
call fcn.0046b480
add esp, 0xc
cmp eax, 0xffffffff
je 0x40777e
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 0x40773a
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.004e0880
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407734
nop dword [eax]
mov al, byte [edi]
lea ecx, [ebp - 0x54]
cmp al, byte [ecx]
je 0x4076e0
sbb eax, eax
or eax, 1
jmp 0x4076e2
xor eax, eax
test eax, eax
je 0x407707
mov eax, dword [ebp - 0x8c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x90]
push edi
call fcn.004e0880
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4076d0
jmp 0x407731
sub edi, dword [ebp - 0x94]
cmp edi, 0xffffffff
je 0x407731
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.00468570
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 0x407620
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40776f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push ecx
push edx
call fcn.004dd0b2
add esp, 8
jmp 0x407612
cmp byte [ebp - 0x58], 0
mov edx, 0x520800
mov eax, 0x5204b8
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407794
mov eax, closesocket
sub ecx, esi
sub eax, edi
cmp eax, ecx
jb 0x407c85
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.0046d850
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 0x407890
cmp byte [ebp - 0x38], 0
je 0x407800
push ecx
mov ecx, edi
call fcn.0048a080
add esp, 4
mov byte [ebp - 0x38], 0
nop
mov al, byte [esi]
cmp al, 0x5c
je 0x40780a
cmp al, 0x2f
jne 0x40780d
inc esi
jmp 0x407800
xorps xmm0, xmm0
lea eax, [ebp - 0xf0]
push eax
movups xmmword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0xd0], xmm0
call fcn.004eb04b
add esp, 4
lea eax, [ebp - 0xf0]
push eax
call fcn.004eb344
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.004899b0
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 0x4078c2
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4078b8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push edx
push ecx
call fcn.004dd0b2
add esp, 8
mov dword [ebp - 0x1b0], 0x520d5c
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.00468080
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.00467ed0
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.00468ea0
test eax, eax
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
je 0x4079a5
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x4079ba
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.00403b70
cmp byte [ebp - 0x38], 0
je 0x407a26
nop dword [eax + eax]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1a4], 0
jne 0x407a17
sub esp, 8
lea eax, [ebp - 0x9e0]
lea ecx, [ebp - 0x1b0]
push eax
call fcn.00464c30
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x407a17
push eax
lea edx, [ebp - 0x9e0]
mov ecx, edi
call fcn.00489f30
add esp, 4
test eax, eax
je 0x4079d0
push ecx
mov ecx, edi
call fcn.0048a080
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.004647c0
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.004dbf0c
mov byte [ebp - 4], 0xd
add esp, 4
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x407ad4
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407aca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push ecx
push edx
call fcn.004dd0b2
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 0x407b24
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c69
push ecx
push edx
call fcn.004dd0b2
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00406610
test eax, eax
jne 0x407c7e
mov esi, dword [ebp - 0x6c]
jmp 0x407507
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x407b64
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407b64
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407b64
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 0x407b90
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x407b90
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x407b90
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x407bb2
cmp byte [ebp - 0x38], 0
je 0x407ba9
push ecx
mov ecx, edi
call fcn.0048a080
add esp, 4
mov byte [ebp - 0x38], 0
mov ecx, edi
call fcn.0048ad40
xor edi, edi
mov byte [ebp - 4], 0x1e
test edi, edi
je 0x407bd2
cmp byte [ebp - 0x38], 0
je 0x407bcb
push ecx
mov ecx, edi
call fcn.0048a080
add esp, 4
mov ecx, edi
call fcn.0048ad40
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x407c06
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407bfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c8a
push ecx
push edx
call fcn.004dd0b2
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 0x407c48
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407c3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c8a
push ecx
push edx
call fcn.004dd0b2
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.004062b0
call fcn.004e2350
lea ecx, [ebp - 0x54]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.004062b0
mov edx, eax
call fcn.00406190
call fcn.00402040
call fcn.004e2350
int3