Function at 0x10046680
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 0x1008cd63
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1b8
mov eax, dword [0x100a70c0]
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 0x100466d0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x58], eax
test al, 1
je 0x100466f3
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x100466e8
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.10018ed0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x10046710
mov eax, dword [edi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x1b8]
call fcn.100195e0
test eax, eax
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
je 0x10046741
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10046756
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.10008620
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.1006334a
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.100480d0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10046837
nop dword [eax]
cmp dword [ebp - 0x4c], 0x7ffffff
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
je 0x10046c5a
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
push 0x20
mov dword [ebp - 0x5c], 0
call fcn.1006334a
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], esi
lea ecx, [esi + 8]
push eax
call fcn.10003d00
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
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.100480d0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100467c0
lea ecx, [ebp - 0x1b8]
call fcn.100194e0
test eax, eax
jne 0x1004686f
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.10008620
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
cmp esi, eax
je 0x10046a01
nop dword [eax]
lea edi, [esi + 8]
push edi
call fcn.10046c70
test al, al
je 0x10046965
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x1004689b
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0x14
push str.__________comment_
push 0
call fcn.10004050
add esp, 0xc
cmp eax, 0xffffffff
je 0x10046965
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.10046e20
mov dword [ebp - 0x48], eax
cmp edi, eax
je 0x10046931
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x100468ff
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x100468f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046c64
mov eax, edx
push ecx
push eax
call fcn.10063694
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 0x10046965
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004695b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046c64
push ecx
push edx
call fcn.10063694
add esp, 8
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x1004696f
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0x13
push str.__________create_
push 0
call fcn.10004050
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1004698c
mov esi, dword [esi]
jmp 0x100469f5
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 0x100469d5
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x100469cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046c64
mov eax, edx
push ecx
push eax
call fcn.10063694
add esp, 8
push 0x20
push esi
mov dword [edi + 0x10], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.10063694
mov esi, dword [ebp - 0x48]
add esp, 8
cmp esi, dword [ebp - 0x50]
jne 0x10046880
mov edi, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x110]
call fcn.100180a0
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x10046a1b
mov eax, dword [edi]
push ecx
push 2
push eax
lea ecx, [ebp - 0x10c]
call fcn.100195e0
test eax, eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x110]
je 0x10046a4c
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10046a61
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.10008620
cmp byte [ebx + 8], 0
jne 0x10046ac1
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x48], 0
mov esi, dword [edi]
cmp esi, edi
je 0x10046abe
nop
cmp dword [esi + 0x1c], 0xf
lea edx, [esi + 8]
jbe 0x10046a8c
mov edx, dword [esi + 8]
push dword [esi + 0x18]
lea ecx, [ebp - 0x110]
call fcn.10014c00
mov ecx, dword [ebp - 0x48]
add esp, 4
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, dword [ebp - 0x4c]
je 0x10046ab8
lea eax, [ebp - 0x110]
push eax
call fcn.10019740
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x10046a80
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x10c]
call fcn.100194e0
test eax, eax
jne 0x10046af9
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.10008620
cmp dword [edi + 0x14], 7
jbe 0x10046b01
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.10018e20
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.10061d68
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.1001c7e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10046bc1
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046bb7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046c64
push ecx
push edx
call fcn.10063694
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.10018e20
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.10061d68
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.10063337
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push str.list_too_long
call fcn.10061190
call fcn.1006dd3f
int3