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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cbed
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
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 dword [ebp - 0x80], ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
push 0x40
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
call fcn.1006328a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
cmp ecx, edx
je 0x10045e53
push ecx
call fcn.100047c0
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.100470d0
mov esi, eax
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x10045e86
mov ecx, eax
call fcn.10047bf0
mov ecx, dword [esi]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x64], ecx
mov eax, dword [esi + 4]
mov dword [esi], edx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x8c]
call fcn.10004560
cmp dword [ebp - 0x60], 0
je 0x10046677
mov esi, dword [ebp - 0x80]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10045ea8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x88], eax
test al, 1
je 0x10045ece
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x10045ec3
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
lea ecx, [ebp - 0x1fc]
call fcn.10018f40
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10045ee8
mov eax, dword [esi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x1ec]
call fcn.10019650
test eax, eax
lea ecx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x1fc]
je 0x10045f19
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10045f2e
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 - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
xor edi, edi
xor esi, esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fc]
call fcn.10048100
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10045fc6
nop dword [eax]
lea eax, [ebp - 0x40]
push eax
cmp esi, edi
je 0x10045f97
mov ecx, esi
call fcn.10003d00
add esi, 0x18
mov dword [ebp - 0x74], esi
jmp 0x10045fa6
push esi
lea ecx, [ebp - 0x78]
call fcn.10014fc0
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x1fc]
call fcn.10048100
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10045f80
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x1ec]
call fcn.10019550
test eax, eax
jne 0x10045ffe
mov eax, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x1fc]
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
push 0x20
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
call fcn.1006328a
mov edi, eax
add esp, 4
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x94], edi
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], eax
cmp eax, esi
je 0x10046181
mov edi, eax
nop dword [eax]
push edi
call fcn.10045240
cmp eax, dword [edi + 0x10]
jae 0x1004605f
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10046055
mov ecx, dword [edi]
cmp byte [ecx + eax], 0x23
je 0x10046170
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
cmp byte [eax + 0xd], 0
jne 0x10046138
nop
cmp dword [eax + 0x24], 0xf
lea esi, [eax + 0x10]
mov eax, esi
jbe 0x1004609d
mov eax, dword [esi]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x100460a7
mov ecx, dword [edi]
mov edx, dword [esi + 0x10]
push edx
push eax
mov dword [ebp - 0x6c], edx
mov edx, dword [edi + 0x10]
push 0
call fcn.10004050
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100460d4
lea ecx, [ebp - 0x5c]
call fcn.10003f30
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0xd], 0
je 0x10046090
jmp 0x10046135
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x100460ef
cmp dword [esi + 0x14], 0xf
jbe 0x100460e3
mov esi, dword [esi]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x58]
push esi
call fcn.10002e20
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.10046d00
push eax
mov ecx, edi
call fcn.10002fa0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10046135
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004612b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100466a1
push ecx
push edx
call fcn.100635d4
add esp, 8
mov esi, dword [ebp - 0x74]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10046170
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046166
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100466a1
push ecx
push edx
call fcn.100635d4
add esp, 8
add edi, 0x18
cmp edi, esi
jne 0x10046040
mov edi, dword [ebp - 0x94]
mov esi, dword [edi]
cmp esi, edi
je 0x100461f2
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x64]
call fcn.10004440
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
cmp byte [eax + 0xd], 0
jne 0x100461d8
cmp dword [eax + 0x24], 0xf
lea edx, [eax + 0x10]
mov dword [ebp - 0x5c], edx
jbe 0x100461b4
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
jbe 0x100461c0
mov ecx, dword [esi + 8]
push dword [edx + 0x10]
mov edx, dword [esi + 0x18]
push dword [ebp - 0x5c]
call fcn.10004670
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x6c]
jns 0x100461db
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x64]
je 0x100461ec
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.10047750
mov esi, dword [esi]
cmp esi, edi
jne 0x10046187
mov esi, dword [ebp - 0x64]
mov esi, dword [esi]
mov dword [ebp - 0x5c], esi
cmp byte [esi + 0xd], 0
jne 0x10046382
mov edi, dword [ebp - 0x88]
nop word [eax + eax]
mov edx, dword [esi + 0x38]
lea ecx, [esi + 0x28]
mov eax, closesocket
sub eax, edx
cmp eax, 0x13
jb 0x1004669c
cmp dword [ecx + 0x14], 0xf
jbe 0x1004622e
mov ecx, dword [ecx]
push 0x13
push str.__________create_
push edx
push ecx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10004340
or dword [ebp - 0x7c], 0xc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x70]
je 0x10046287
xorps xmm0, xmm0
mov ecx, 0xf
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax + 0x14], 0
mov byte [ebp - 0x28], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
add eax, 0x18
mov dword [ebp - 0x74], eax
jmp 0x10046297
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.10004890
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x100462cc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100462c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100466a1
push ecx
push edx
call fcn.100635d4
add esp, 8
add esi, 0x28
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10046fa0
mov edx, dword [ebp - 0x84]
mov byte [ebp - 4], 9
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x10046326
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edx + 4], 0x18
jmp 0x1004632f
push eax
push ecx
mov ecx, edx
call fcn.10004890
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10046367
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004635d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100466a1
push ecx
push edx
call fcn.100635d4
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.10003f30
mov esi, dword [ebp - 0x5c]
cmp byte [esi + 0xd], 0
je 0x10046210
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x144], 0x10098750
call fcn.100114e0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x7c]
or eax, 1
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x144]
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 - 0x144]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x148], eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
add ecx, dword [eax + 4]
call fcn.100120f0
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x144]
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 - 0x144]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x148], eax
lea ecx, [ebp - 0x140]
call fcn.10019710
mov ecx, dword [ebp - 0x80]
mov eax, ecx
mov byte [ebp - 4], 0xd
cmp dword [ecx + 0x14], 7
jbe 0x10046431
mov eax, dword [ecx]
push ecx
push 2
push eax
lea ecx, [ebp - 0x140]
call fcn.10019650
test eax, eax
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x144]
je 0x10046462
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10046477
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 esi, dword [ebp - 0x74]
xor edi, edi
mov eax, dword [ebp - 0x68]
cmp eax, esi
je 0x100464f0
mov ecx, esi
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x68]
nop dword [eax]
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x100464ba
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebp - 0x144]
call fcn.10014c50
inc edi
add esp, 4
cmp edi, dword [ebp - 0x84]
je 0x100464e3
lea eax, [ebp - 0x144]
push eax
call fcn.100197b0
add esp, 4
mov eax, dword [ebp - 0x68]
add eax, 0x18
mov dword [ebp - 0x68], eax
cmp eax, esi
jne 0x100464b0
lea ecx, [ebp - 0x140]
call fcn.10019550
test eax, eax
jne 0x10046528
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
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 - 0x80]
cmp dword [eax + 0x14], 7
jbe 0x10046533
mov eax, dword [eax]
push dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x144]
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 - 0x144]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x148], eax
lea ecx, [ebp - 0x140]
call fcn.10018e90
mov eax, dword [ebp - 0x144]
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 - 0x144]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x148], eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0xdc], vtable.std::ios_base.0
call fcn.10061ca8
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.1001c850
lea ecx, [ebp - 0x78]
call fcn.10011580
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x10046601
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100465f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100466a1
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, dword [ebp - 0x1fc]
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 - 0x1fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x200], eax
lea ecx, [ebp - 0x1ec]
call fcn.10018e90
mov eax, dword [ebp - 0x1fc]
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 - 0x1fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x200], eax
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0xf
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 - 0x64]
call fcn.10004560
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 0xc
call fcn.10002b20
call fcn.1006dc9f
int3