Function at 0x10048650
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008fe9c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x9c], esi
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x8c], 0
push eax
call fcn.10047f20
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x100486b0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xb0], eax
test al, 1
je 0x100486d6
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x100486cb
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
lea ecx, [ebp - 0x238]
call fcn.10018fe0
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x100486f0
mov eax, dword [esi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x228]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x238]
je 0x10048721
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10048736
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.10008690
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
xor eax, eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], esi
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100487e4
nop dword [eax]
lea eax, [ebp - 0x58]
push eax
cmp edi, esi
je 0x100487aa
mov ecx, edi
call fcn.10003da0
add edi, 0x18
mov dword [ebp - 0x84], edi
jmp 0x100487bf
push edi
lea ecx, [ebp - 0x88]
call fcn.10015250
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x238]
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10048790
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x7c], esi
jmp 0x100487e6
xor esi, esi
lea ecx, [ebp - 0x228]
call fcn.100195f0
test eax, eax
jne 0x1004881e
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
push 0
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 eax
call fcn.10008690
mov edi, esi
mov dword [ebp - 0x78], esi
cmp edi, dword [ebp - 0x84]
je 0x10048c4b
nop
push edi
call fcn.10048480
cmp eax, dword [edi + 0x10]
jae 0x1004884f
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10048845
mov ecx, dword [edi]
cmp byte [ecx + eax], 0x23
je 0x10048c39
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
cmp eax, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x94], eax
je 0x10048c39
push eax
lea ecx, [ebp - 0x40]
call fcn.10003da0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100484d0
test al, al
mov edx, edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x98], eax
je 0x1004896e
push 0x20
lea ecx, [ebp - 0xa4]
call fcn.1001b740
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa4]
mov esi, dword [eax]
cmp esi, eax
je 0x1004895e
nop dword [eax]
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x180]
call fcn.1004b3c0
mov byte [ebp - 4], 7
lea edi, [esi + 8]
cmp dword [esi + 0x1c], 0xf
jbe 0x10048904
mov edi, dword [esi + 8]
mov ecx, edi
jmp 0x10048907
lea ecx, [esi + 8]
mov edx, dword [esi + 0x18]
push ecx
push 0x10
push eax
push ecx
add edx, edi
call fcn.1004b830
add esp, 0x10
mov byte [ebp - 0x71], al
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 6
call fcn.1004ac40
mov ecx, dword [ebp - 0x170]
test ecx, ecx
je 0x10048948
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10048948
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x71], 0
jne 0x10048b00
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0xa4]
jne 0x100488e0
lea ecx, [ebp - 0xa4]
call fcn.1001ca50
jmp 0x10048a62
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x90], edi
cmova ecx, eax
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0xa8], ecx
jbe 0x10048992
mov edx, dword [edi]
mov dword [ebp - 0x90], edx
mov eax, dword [edi + 0x10]
mov esi, dword [ebp - 0x30]
cmp esi, eax
ja 0x10048a62
sub eax, esi
test esi, esi
je 0x10048d39
mov cl, byte [ecx]
inc eax
add eax, edx
mov byte [ebp - 0x71], cl
mov dword [ebp - 0xac], eax
sub eax, edx
push eax
movsx eax, cl
push eax
push edx
call fcn.100681d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10048a62
mov eax, dword [ebp - 0xa8]
mov edx, edi
sub esi, 4
jb 0x100489f1
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100489f6
add edx, 4
add eax, 4
sub esi, 4
jae 0x100489e0
cmp esi, 0xfffffffc
je 0x10048a2a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10048a23
cmp esi, 0xfffffffd
je 0x10048a2a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10048a23
cmp esi, 0xfffffffe
je 0x10048a2a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10048a23
cmp esi, 0xffffffff
je 0x10048a2a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10048a2a
sbb eax, eax
or eax, 1
jmp 0x10048a2c
xor eax, eax
test eax, eax
je 0x10048a53
mov eax, dword [ebp - 0xac]
inc edi
sub eax, edi
push eax
movsx eax, byte [ebp - 0x71]
push eax
push edi
call fcn.100681d0
mov esi, dword [ebp - 0x30]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100489d2
jmp 0x10048a62
sub edi, dword [ebp - 0x90]
cmp edi, 0xffffffff
jne 0x10048d36
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10048a9a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048a90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0xf
jbe 0x10048ae9
mov edx, dword [ebp - 0x98]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10048adf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [ebp - 0x94]
mov edi, dword [ebp - 0x78]
add eax, 0x34
cmp eax, dword [ebp - 0x8c]
jmp 0x10048863
lea ecx, [ebp - 0xa4]
call fcn.1001ca50
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10048b43
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048b39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x10048b8d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048b83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov edi, dword [ebp - 0x78]
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.10049f20
mov esi, eax
cmp edi, esi
je 0x10048c05
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x10048bd3
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10048bc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
mov eax, edx
push ecx
push eax
call fcn.100666c9
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x10048c39
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048c2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
add edi, 0x18
mov dword [ebp - 0x78], edi
cmp edi, dword [ebp - 0x84]
jne 0x10048830
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x16c], 0x1009b778
call fcn.10011590
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x8c], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x170], eax
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
add ecx, dword [eax + 4]
call fcn.100121c0
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x170], eax
lea ecx, [ebp - 0x168]
call fcn.100197b0
mov edi, dword [ebp - 0x9c]
mov eax, edi
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x14], 7
jbe 0x10048cfe
mov eax, dword [edi]
push ecx
push 2
push eax
lea ecx, [ebp - 0x168]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x16c]
mov eax, dword [ebp - 0x16c]
je 0x10048dc9
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10048dde
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10048d71
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048d67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0xf
jbe 0x10048b90
mov edx, dword [ebp - 0x98]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10048dba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
jmp 0x10048b90
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.10008690
mov eax, dword [ebp - 0x84]
xor esi, esi
mov edx, dword [ebp - 0x7c]
cmp edx, eax
je 0x10048e56
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
mov eax, dword [ebp - 0x7c]
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
nop dword [eax]
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x10048e1a
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebp - 0x16c]
call fcn.10014dc0
inc esi
add esp, 4
cmp esi, edi
je 0x10048e3f
lea eax, [ebp - 0x16c]
push eax
call fcn.10019850
add esp, 4
mov eax, dword [ebp - 0x7c]
add eax, 0x18
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x84]
jne 0x10048e10
mov edi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x168]
call fcn.100195f0
test eax, eax
jne 0x10048e8e
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
push 0
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 eax
call fcn.10008690
cmp dword [edi + 0x14], 7
jbe 0x10048e96
mov edi, dword [edi]
push dword [ebp - 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x170], eax
lea ecx, [ebp - 0x168]
call fcn.10018f30
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x170], eax
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10064dbf
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.10011630
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10048f5c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048f52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048ffa
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [ebp - 0x238]
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 - 0x238]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x23c], eax
lea ecx, [ebp - 0x228]
call fcn.10018f30
mov eax, dword [ebp - 0x238]
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 - 0x238]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x23c], eax
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10064dbf
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.1004aba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 4
call fcn.10070c0f
int3