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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cb3c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100a70c0]
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.10044ce0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10045470
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xb0], eax
test al, 1
je 0x10045496
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x1004548b
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.10018f40
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x100454b0
mov eax, dword [esi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x228]
call fcn.10019650
test eax, eax
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x238]
je 0x100454e1
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x100454f6
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 - 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.10048100
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100455a4
nop dword [eax]
lea eax, [ebp - 0x58]
push eax
cmp edi, esi
je 0x1004556a
mov ecx, edi
call fcn.10003d00
add edi, 0x18
mov dword [ebp - 0x84], edi
jmp 0x1004557f
push edi
lea ecx, [ebp - 0x88]
call fcn.10014fc0
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x238]
call fcn.10048100
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10045550
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x7c], esi
jmp 0x100455a6
xor esi, esi
lea ecx, [ebp - 0x228]
call fcn.10019550
test eax, eax
jne 0x100455de
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.10008620
mov edi, esi
mov dword [ebp - 0x78], esi
cmp edi, dword [ebp - 0x84]
je 0x10045a0f
nop
push edi
call fcn.10045240
cmp eax, dword [edi + 0x10]
jae 0x1004560f
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10045605
mov ecx, dword [edi]
cmp byte [ecx + eax], 0x23
je 0x100459fd
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
cmp eax, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x94], eax
je 0x100459fd
push eax
lea ecx, [ebp - 0x40]
call fcn.10003d00
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.10045290
test al, al
mov edx, edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x98], eax
je 0x1004572c
push 0x20
lea ecx, [ebp - 0xa4]
call fcn.1001b530
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa4]
mov esi, dword [eax]
cmp esi, eax
je 0x1004571c
nop dword [eax]
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x180]
call fcn.100481b0
mov byte [ebp - 4], 7
lea edi, [esi + 8]
cmp dword [esi + 0x1c], 0xf
jbe 0x100456c4
mov edi, dword [esi + 8]
mov ecx, edi
jmp 0x100456c7
lea ecx, [esi + 8]
mov edx, dword [esi + 0x18]
push ecx
push 0x10
push eax
push ecx
add edx, edi
call fcn.10048610
add esp, 0x10
mov byte [ebp - 0x71], al
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 6
call fcn.10047a20
mov ecx, dword [ebp - 0x170]
test ecx, ecx
je 0x10045708
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10045708
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x71], 0
jne 0x100458c4
mov esi, dword [esi]
cmp esi, dword [ebp - 0xa4]
jne 0x100456a0
lea ecx, [ebp - 0xa4]
call fcn.1001c850
jmp 0x10045826
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 0x10045750
mov edx, dword [edi]
mov dword [ebp - 0x90], edx
mov eax, dword [edi + 0x10]
mov esi, dword [ebp - 0x30]
cmp esi, eax
ja 0x10045826
test esi, esi
je 0x10045afd
mov cl, byte [ecx]
sub eax, esi
inc eax
mov byte [ebp - 0x71], cl
add eax, edx
mov dword [ebp - 0xac], eax
sub eax, edx
push eax
movsx eax, cl
push eax
push edx
call fcn.100657c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10045826
mov eax, dword [ebp - 0xa8]
mov edx, edi
sub esi, 4
jb 0x100457b1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100457b6
add edx, 4
add eax, 4
sub esi, 4
jae 0x100457a0
cmp esi, 0xfffffffc
je 0x100457ea
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x100457e3
cmp esi, 0xfffffffd
je 0x100457ea
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x100457e3
cmp esi, 0xfffffffe
je 0x100457ea
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x100457e3
cmp esi, 0xffffffff
je 0x100457ea
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x100457ea
sbb eax, eax
or eax, 1
jmp 0x100457ec
xor eax, eax
test eax, eax
je 0x10045817
mov eax, dword [ebp - 0xac]
inc edi
sub eax, edi
push eax
movsx eax, byte [ebp - 0x71]
push eax
push edi
call fcn.100657c0
mov esi, dword [ebp - 0x30]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10045790
jmp 0x10045826
sub edi, dword [ebp - 0x90]
cmp edi, 0xffffffff
jne 0x10045afa
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1004585e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045854
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
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 0x100458ad
mov edx, dword [ebp - 0x98]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100458a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, dword [ebp - 0x94]
mov edi, dword [ebp - 0x78]
add eax, 0x34
cmp eax, dword [ebp - 0x8c]
jmp 0x10045623
lea ecx, [ebp - 0xa4]
call fcn.1001c850
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10045907
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100458fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
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 0x10045951
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045947
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
add esp, 8
mov edi, dword [ebp - 0x78]
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.10046d00
mov esi, eax
cmp edi, esi
je 0x100459c9
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x10045997
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x1004598d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
mov eax, edx
push ecx
push eax
call fcn.100635d4
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 0x100459fd
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100459f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
add esp, 8
add edi, 0x18
mov dword [ebp - 0x78], edi
cmp edi, dword [ebp - 0x84]
jne 0x100455f0
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x16c], 0x10098750
call fcn.100114e0
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.100120f0
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.10019710
mov edi, dword [ebp - 0x9c]
mov eax, edi
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x14], 7
jbe 0x10045ac2
mov eax, dword [edi]
push ecx
push 2
push eax
lea ecx, [ebp - 0x168]
call fcn.10019650
test eax, eax
lea ecx, [ebp - 0x16c]
mov eax, dword [ebp - 0x16c]
je 0x10045b8d
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10045ba2
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10045b35
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045b2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
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 0x10045954
mov edx, dword [ebp - 0x98]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10045b7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
add esp, 8
jmp 0x10045954
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
mov eax, dword [ebp - 0x84]
xor esi, esi
mov edx, dword [ebp - 0x7c]
cmp edx, eax
je 0x10045c17
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
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x10045bdb
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebp - 0x16c]
call fcn.10014c50
inc esi
add esp, 4
cmp esi, edi
je 0x10045c00
lea eax, [ebp - 0x16c]
push eax
call fcn.100197b0
add esp, 4
mov eax, dword [ebp - 0x7c]
add eax, 0x18
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x84]
jne 0x10045bd1
mov edi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x168]
call fcn.10019550
test eax, eax
jne 0x10045c4f
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.10008620
cmp dword [edi + 0x14], 7
jbe 0x10045c57
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.10018e90
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.10061ca8
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.10011580
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10045d1d
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045d13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10045dbb
push ecx
push edx
call fcn.100635d4
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.10018e90
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.10061ca8
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.10047980
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.10063277
mov esp, ebp
pop ebp
ret 4
call fcn.1006dc9f
int3