Function at 0x4508a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da541
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x40
push 1
push 0x5f30f0
lea ecx, [ebp - 0x25c]
call fcn.0042c590
push 1
push 0x40
push 1
push 0x5f30ec
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 0
call fcn.0042c590
push 1
push 0x40
push 2
push 0x5f2d74
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.00430010
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 0xa
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0044d6f0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x450a02
jmp 0x450970
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0044d3e0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0042f0c0
push eax
mov byte [ebp - 4], 5
call fcn.0042c250
mov ecx, dword [ebp - 0x44]
add esp, 4
mov byte [ebp - 4], 4
mov edi, eax
test ecx, ecx
je 0x4509c0
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4509c0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [edi]
mov ecx, edi
push 0xa
mov eax, dword [eax + 0x20]
call eax
movzx eax, al
mov ecx, esi
push eax
call fcn.00443380
mov ecx, esi
call fcn.0042ef60
push 0xa
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0044d6f0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x450970
push 0xa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044d6f0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x450ac2
jmp 0x450a30
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0044d3e0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0042f0c0
push eax
mov byte [ebp - 4], 6
call fcn.0042c250
mov ecx, dword [ebp - 0x44]
add esp, 4
mov byte [ebp - 4], 4
mov edi, eax
test ecx, ecx
je 0x450a80
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x450a80
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [edi]
mov ecx, edi
push 0xa
mov eax, dword [eax + 0x20]
call eax
movzx eax, al
mov ecx, esi
push eax
call fcn.00443380
mov ecx, esi
call fcn.0042ef60
push 0xa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044d6f0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x450a30
lea ecx, [ebp - 0x25c]
call fcn.0044d260
lea ecx, [ebp - 0x1a4]
call fcn.0044d260
lea ecx, [ebp - 0xec]
call fcn.004308e0
push 2
push 0x5f2d74
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5f30ec
call fcn.005ba7ac
push 0x5f30f0
call fcn.005ba7ac
add esp, 8
call fcn.00450570
cmp dword [ebp - 0x2c], 0x10
jb 0x450b1d
push dword [ebp - 0x40]
call fcn.005b62e5
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x450b40
push dword [ebp - 0x28]
call fcn.005b62e5
add esp, 4
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
mov dword [ebp + eax - 0xec], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xe8]
call fcn.0042cbc0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xf0], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.005b5fcb
mov eax, dword [ebp - 0x1a4]
add esp, 4
mov byte [ebp - 4], 0
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 - 0x1a4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1a8], eax
lea ecx, [ebp - 0x194]
call fcn.0042cbc0
mov eax, dword [ebp - 0x1a4]
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 - 0x1a4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1a8], eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005b5fcb
mov eax, dword [ebp - 0x25c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
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 - 0x25c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x260], eax
lea ecx, [ebp - 0x24c]
call fcn.0042cbc0
mov eax, dword [ebp - 0x25c]
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 - 0x25c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x260], eax
lea eax, [ebp - 0x1ec]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005b5fcb
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.005b6a74
mov esp, ebp
pop ebp
ret