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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ff4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
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 dword [ebp - 0x7c], ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], eax
push 0x40
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
call fcn.1006637f
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 0x10049083
push ecx
call fcn.10004870
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.1004a2f0
mov esi, eax
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x100490b6
mov ecx, eax
call fcn.1004ae10
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.10004610
cmp dword [ebp - 0x60], 0
je 0x10049897
mov esi, dword [ebp - 0x7c]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x100490d8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x88], eax
test al, 1
je 0x100490fe
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x100490f3
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.10018fe0
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10049118
mov eax, dword [esi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x1ec]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x1fc]
je 0x10049149
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x1004915e
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 - 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 - 0x74], edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fc]
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100491f4
nop dword [eax]
lea eax, [ebp - 0x40]
push eax
cmp esi, dword [ebp - 0x6c]
je 0x100491c8
mov ecx, esi
call fcn.10003da0
add esi, 0x18
mov dword [ebp - 0x70], esi
jmp 0x100491d4
push esi
lea ecx, [ebp - 0x74]
call fcn.10015250
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x1fc]
call fcn.1004b310
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100491b0
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x68], edi
lea ecx, [ebp - 0x1ec]
call fcn.100195f0
test eax, eax
jne 0x1004922c
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.10008690
push 0x20
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
call fcn.1006637f
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp edi, esi
je 0x100493a6
push edi
call fcn.10048480
cmp eax, dword [edi + 0x10]
jae 0x10049283
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10049279
mov ecx, dword [edi]
cmp byte [ecx + eax], 0x23
je 0x10049392
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 0x1004935a
cmp dword [eax + 0x24], 0xf
lea esi, [eax + 0x10]
mov eax, esi
jbe 0x100492bf
mov eax, dword [esi]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x100492c9
mov ecx, dword [edi]
mov edx, dword [esi + 0x10]
push edx
push eax
mov dword [ebp - 0x80], edx
mov edx, dword [edi + 0x10]
push 0
call fcn.100040f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100492f6
lea ecx, [ebp - 0x5c]
call fcn.10003fd0
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0xd], 0
je 0x100492b2
jmp 0x10049357
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x10049311
cmp dword [esi + 0x14], 0xf
jbe 0x10049305
mov esi, dword [esi]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
push esi
call fcn.10002eb0
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.10049f20
push eax
mov ecx, edi
call fcn.10003030
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10049357
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004934d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100498c1
push ecx
push edx
call fcn.100666c9
add esp, 8
mov esi, dword [ebp - 0x70]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10049392
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049388
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100498c1
push ecx
push edx
call fcn.100666c9
add esp, 8
add edi, 0x18
cmp edi, esi
jne 0x10049264
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1004940f
nop dword [eax]
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x64]
call fcn.100044f0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x10049406
cmp dword [eax + 0x24], 0xf
lea edx, [eax + 0x10]
jbe 0x100493d5
mov edx, dword [eax + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x100493df
mov ecx, dword [edi]
push dword [eax + 0x20]
push edx
mov edx, dword [edi + 0x10]
call fcn.10004720
shr eax, 0x1f
add esp, 8
test al, al
jne 0x10049406
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x64]
je 0x10049406
push edi
lea ecx, [ebp - 0x64]
call fcn.1004a970
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x5c]
jne 0x100493b0
mov esi, dword [ebp - 0x64]
mov esi, dword [esi]
mov dword [ebp - 0x5c], esi
cmp byte [esi + 0xd], 0
jne 0x100495a1
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 0x100498bc
cmp dword [ecx + 0x14], 0xf
jbe 0x1004944e
mov ecx, dword [ecx]
push 0x13
push str.__________create_
push edx
push ecx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.100043e0
or dword [ebp - 0x78], 0xc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
je 0x100494a7
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 - 0x70], eax
jmp 0x100494b7
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.10004940
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x100494ec
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100494e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100498c1
push ecx
push edx
call fcn.100666c9
add esp, 8
add esi, 0x28
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1004a1c0
mov edx, dword [ebp - 0x84]
mov byte [ebp - 4], 9
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x10049546
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 0x1004954f
push eax
push ecx
mov ecx, edx
call fcn.10004940
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10049587
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004957d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100498c1
push ecx
push edx
call fcn.100666c9
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.10003fd0
mov esi, dword [ebp - 0x5c]
cmp byte [esi + 0xd], 0
je 0x10049430
mov edi, dword [ebp - 0x74]
jmp 0x100495a4
mov edi, dword [ebp - 0x68]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x144], 0x1009b778
call fcn.10011590
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x80], 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.100121c0
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.100197b0
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
mov byte [ebp - 4], 0xd
cmp dword [ecx + 0x14], 7
jbe 0x10049653
mov eax, dword [ecx]
push ecx
push 2
push eax
lea ecx, [ebp - 0x140]
call fcn.100196f0
test eax, eax
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x144]
je 0x10049684
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10049699
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 esi, dword [ebp - 0x70]
mov dword [ebp - 0x68], 0
cmp edi, esi
je 0x10049710
mov ecx, esi
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x84], eax
nop word [eax + eax]
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x100496da
mov edx, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x144]
call fcn.10014dc0
mov eax, dword [ebp - 0x68]
add esp, 4
inc eax
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x84]
je 0x10049709
lea eax, [ebp - 0x144]
push eax
call fcn.10019850
add esp, 4
add edi, 0x18
cmp edi, esi
jne 0x100496d0
lea ecx, [ebp - 0x140]
call fcn.100195f0
test eax, eax
jne 0x10049748
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.10008690
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x14], 7
jbe 0x10049753
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.10018f30
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.10064dbf
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.1001ca50
lea ecx, [ebp - 0x74]
call fcn.10011630
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x10049821
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049817
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100498c1
push ecx
push edx
call fcn.100666c9
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.10018f30
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.10064dbf
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.10004610
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 0xc
call fcn.10002b90
call fcn.10070c0f
int3