Function at 0x405dd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43587f
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x7c], eax
mov esi, ecx
push 0x200
push 0
push eax
mov dword [ebp - 0x74], 0
call fcn.004166e0
add esp, 0xc
mov dword [ebp - 0x12c], 0x441040
lea ecx, [ebp - 0xc4]
call fcn.0040f1a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x74], 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 - 0x12c]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x130], eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
add ecx, dword [eax + 4]
call fcn.0040f340
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x12c]
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 - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x128]
call fcn.0040f010
push ecx
push 0xa
push ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 3
call fcn.0040ef50
test eax, eax
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 0x12c]
je 0x405ef2
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x405f07
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.00405c90
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x1ec], 0x4410e0
mov dword [ebp - 0x1dc], 0x441040
call fcn.0040f1a0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x74], 5
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 - 0x1ec]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1f0], eax
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
movlpd qword [ebp - 0x1e4], xmm0
add ecx, dword [eax + 4]
call fcn.0040f340
mov eax, dword [ebp - 0x1dc]
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 - 0x1dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1e0], eax
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1f0], eax
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1f0], eax
lea ecx, [ebp - 0x1d4]
call fcn.0040f010
push ecx
push 2
push ecx
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 0xa
call fcn.0040ef50
test eax, eax
jne 0x40604e
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
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.00405c90
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push eax
call fcn.00404720
mov dword [ebp - 0x78], eax
push esi
mov byte [ebp - 4], 0xc
call fcn.00404ee0
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004050f0
mov ecx, eax
mov byte [ebp - 4], 0xd
mov edi, dword [ecx + 0x14]
mov eax, edi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x40609f
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp edi, 0xf
jbe 0x406097
mov eax, dword [ecx]
mov word [edx + eax], 0x7c
jmp 0x4060b6
push 1
push 0x43fd10
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push 1
call fcn.00410060
mov ecx, eax
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x40]
call fcn.00410350
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x406126
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40611c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063ae
push ecx
push edx
call fcn.0041380b
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x40615e
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406154
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063ae
push ecx
push edx
call fcn.0041380b
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x4061a8
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40619e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063ae
push ecx
push edx
call fcn.0041380b
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmova edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00410980
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.0040ee50
test eax, eax
jne 0x40620e
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
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.00405c90
push 2
push str.C:ProgramDataKeyFile.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00404ee0
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004050f0
cmp dword [eax + 0x14], 0xf
jbe 0x406233
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push dword [ebp - 0x7c]
call edi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x406273
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406269
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063b3
push ecx
push edx
call fcn.0041380b
add esp, 8
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00404720
cmp dword [eax + 0x14], 0xf
jbe 0x406285
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x7c]
add eax, 0x100
push eax
call edi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4062c5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4062bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063b8
push ecx
push edx
call fcn.0041380b
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4062fd
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4062f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063bd
push ecx
push edx
call fcn.0041380b
add esp, 8
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00406460
mov eax, dword [ebp - 0x12c]
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 - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x128]
call fcn.0040e180
mov eax, dword [ebp - 0x12c]
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 - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x130], eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0x13
push eax
mov dword [ebp - 0xc4], vtable.std::ios_base.0
call fcn.00414d32
add esp, 4
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.004137fd
mov esp, ebp
pop ebp
ret
call fcn.00419665
call fcn.00419665
call fcn.00419665
call fcn.00419665
int3