Function at 0x100498d0
Capabilities:
Get file attributes
Set 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 0x1008ffb3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1b8
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x10049920
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x58], eax
test al, 1
je 0x10049943
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x10049938
mov ecx, dword [edi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.10018fe0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x10049960
mov eax, dword [edi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x1b8]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
je 0x10049991
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x100499a6
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 - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.1006637f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c8]
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10049a87
nop dword [eax]
cmp dword [ebp - 0x4c], 0x7ffffff
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
je 0x10049ea7
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
push 0x20
mov dword [ebp - 0x5c], 0
call fcn.1006637f
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], esi
lea ecx, [esi + 8]
push eax
call fcn.10003da0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
inc dword [ebp - 0x4c]
mov dword [ebp - 0x5c], 0
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
lea ecx, [ebp - 0x1c8]
mov dword [eax], esi
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10049a10
lea ecx, [ebp - 0x1b8]
call fcn.100195f0
test eax, eax
jne 0x10049abf
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
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 eax, dword [ebp - 0x50]
mov esi, dword [eax]
cmp esi, eax
je 0x10049c51
nop dword [eax]
lea edi, [esi + 8]
push edi
call fcn.10049ec0
test al, al
je 0x10049bb5
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10049aeb
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0x14
push str.__________comment_
push 0
call fcn.100040f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10049bb5
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.1004a070
mov dword [ebp - 0x48], eax
cmp edi, eax
je 0x10049b81
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x10049b4f
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10049b42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049eb1
mov eax, edx
push ecx
push eax
call fcn.100666c9
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x10049bb5
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049bab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049eb1
push ecx
push edx
call fcn.100666c9
add esp, 8
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10049bbf
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0x13
push str.__________create_
push 0
call fcn.100040f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10049bdc
mov esi, dword [esi]
jmp 0x10049c45
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x48], ecx
mov dword [eax], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [ebp - 0x4c]
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x10049c25
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x10049c1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049eb1
mov eax, edx
push ecx
push eax
call fcn.100666c9
add esp, 8
push 0x20
push esi
mov dword [edi + 0x10], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.100666c9
mov esi, dword [ebp - 0x48]
add esp, 8
cmp esi, dword [ebp - 0x50]
jne 0x10049ad0
mov edi, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x110]
call fcn.100181c0
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x10049c6b
mov eax, dword [edi]
push ecx
push 2
push eax
lea ecx, [ebp - 0x10c]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x110]
je 0x10049c9c
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10049cb1
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
cmp byte [ebx + 8], 0
jne 0x10049d0e
mov eax, dword [ebp - 0x50]
xor edi, edi
mov dword [ebp - 0x48], eax
mov esi, dword [eax]
cmp esi, eax
je 0x10049d0b
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea edx, [esi + 8]
jbe 0x10049cdc
mov edx, dword [esi + 8]
push dword [esi + 0x18]
lea ecx, [ebp - 0x110]
call fcn.10014dc0
inc edi
add esp, 4
cmp edi, dword [ebp - 0x4c]
je 0x10049d02
lea eax, [ebp - 0x110]
push eax
call fcn.10019850
add esp, 4
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x48]
jne 0x10049cd0
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x10c]
call fcn.100195f0
test eax, eax
jne 0x10049d46
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
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 0x10049d4e
mov edi, dword [edi]
push dword [ebp - 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x110]
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 - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
lea ecx, [ebp - 0x10c]
call fcn.10018f30
mov eax, dword [ebp - 0x110]
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 - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x114], eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.10064dbf
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.1001ca50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10049e0e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049e04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049eb1
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [ebp - 0x1c8]
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 - 0x1c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1cc], eax
lea ecx, [ebp - 0x1b8]
call fcn.10018f30
mov eax, dword [ebp - 0x1c8]
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 - 0x1c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1cc], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10064dbf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push str.list_too_long
call fcn.10064290
call fcn.10070c0f
int3