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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ccdd
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.1006332a
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 0x10045e03
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.10047080
mov esi, eax
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x10045e36
mov ecx, eax
call fcn.10047ba0
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 0x10046627
mov esi, dword [ebp - 0x80]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10045e58
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x88], eax
test al, 1
je 0x10045e7e
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x10045e73
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.10018ed0
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10045e98
mov eax, dword [esi]
push ecx
push 1
push eax
lea ecx, [ebp - 0x1ec]
call fcn.100195e0
test eax, eax
lea ecx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x1fc]
je 0x10045ec9
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10045ede
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.100480b0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10045f76
nop dword [eax]
lea eax, [ebp - 0x40]
push eax
cmp esi, edi
je 0x10045f47
mov ecx, esi
call fcn.10003d00
add esi, 0x18
mov dword [ebp - 0x74], esi
jmp 0x10045f56
push esi
lea ecx, [ebp - 0x78]
call fcn.10014f70
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x1fc]
call fcn.100480b0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10045f30
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x1ec]
call fcn.100194e0
test eax, eax
jne 0x10045fae
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.1006332a
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 0x10046131
mov edi, eax
nop dword [eax]
push edi
call fcn.100451f0
cmp eax, dword [edi + 0x10]
jae 0x1004600f
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10046005
mov ecx, dword [edi]
cmp byte [ecx + eax], 0x23
je 0x10046120
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 0x100460e8
nop
cmp dword [eax + 0x24], 0xf
lea esi, [eax + 0x10]
mov eax, esi
jbe 0x1004604d
mov eax, dword [esi]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10046057
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 0x10046084
lea ecx, [ebp - 0x5c]
call fcn.10003f30
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0xd], 0
je 0x10046040
jmp 0x100460e5
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x1004609f
cmp dword [esi + 0x14], 0xf
jbe 0x10046093
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.10046cb0
push eax
mov ecx, edi
call fcn.10002fa0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100460e5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100460db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046651
push ecx
push edx
call fcn.10063674
add esp, 8
mov esi, dword [ebp - 0x74]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10046120
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046116
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046651
push ecx
push edx
call fcn.10063674
add esp, 8
add edi, 0x18
cmp edi, esi
jne 0x10045ff0
mov edi, dword [ebp - 0x94]
mov esi, dword [edi]
cmp esi, edi
je 0x100461a2
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 0x10046188
cmp dword [eax + 0x24], 0xf
lea edx, [eax + 0x10]
mov dword [ebp - 0x5c], edx
jbe 0x10046164
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
jbe 0x10046170
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 0x1004618b
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x64]
je 0x1004619c
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.10047700
mov esi, dword [esi]
cmp esi, edi
jne 0x10046137
mov esi, dword [ebp - 0x64]
mov esi, dword [esi]
mov dword [ebp - 0x5c], esi
cmp byte [esi + 0xd], 0
jne 0x10046332
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 0x1004664c
cmp dword [ecx + 0x14], 0xf
jbe 0x100461de
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 0x10046237
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 0x10046247
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 0x1004627c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046272
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046651
push ecx
push edx
call fcn.10063674
add esp, 8
add esi, 0x28
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10046f50
mov edx, dword [ebp - 0x84]
mov byte [ebp - 4], 9
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x100462d6
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 0x100462df
push eax
push ecx
mov ecx, edx
call fcn.10004890
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10046317
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004630d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046651
push ecx
push edx
call fcn.10063674
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.10003f30
mov esi, dword [ebp - 0x5c]
cmp byte [esi + 0xd], 0
je 0x100461c0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x144], 0x10098790
call fcn.10011490
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.100120a0
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.100196a0
mov ecx, dword [ebp - 0x80]
mov eax, ecx
mov byte [ebp - 4], 0xd
cmp dword [ecx + 0x14], 7
jbe 0x100463e1
mov eax, dword [ecx]
push ecx
push 2
push eax
lea ecx, [ebp - 0x140]
call fcn.100195e0
test eax, eax
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x144]
je 0x10046412
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10046427
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 0x100464a0
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 0x1004646a
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebp - 0x144]
call fcn.10014c00
inc edi
add esp, 4
cmp edi, dword [ebp - 0x84]
je 0x10046493
lea eax, [ebp - 0x144]
push eax
call fcn.10019740
add esp, 4
mov eax, dword [ebp - 0x68]
add eax, 0x18
mov dword [ebp - 0x68], eax
cmp eax, esi
jne 0x10046460
lea ecx, [ebp - 0x140]
call fcn.100194e0
test eax, eax
jne 0x100464d8
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 0x100464e3
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.10018e20
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.10061d48
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.1001c7e0
lea ecx, [ebp - 0x78]
call fcn.10011530
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x100465b1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100465a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046651
push ecx
push edx
call fcn.10063674
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.10018e20
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.10061d48
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.10063317
mov esp, ebp
pop ebp
ret 0xc
call fcn.10002b20
call fcn.1006dd1f
int3