Function at 0x41b14b
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push 0x10c
mov eax, 0x465717
call fcn.00461b38
mov edi, ecx
mov dword [ebp - 0x68], edi
lea eax, [edi + 8]
cmp dword [eax + 0x10], 0
jne 0x41b16f
xor al, al
jmp 0x41b45a
push eax
lea ecx, [ebp - 0x28]
call fcn.004086ef
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
push ecx
lea ecx, [ebp - 0x118]
call fcn.0041f6da
mov byte [ebp - 4], 1
mov esi, 0x421184
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
push 0x18
pop ecx
cdq
idiv ecx
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], ecx
test eax, eax
je 0x41b218
xor ebx, ebx
mov esi, dword [edi + 0x40]
lea ecx, [ebp - 0x108]
mov edx, 0x4894d4
add esi, ebx
call fcn.004090d3
mov edx, esi
mov ecx, eax
call fcn.004065d8
mov esi, 0x421184
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0x18
pop eax
add ebx, eax
mov ecx, dword [ebp - 0x5c]
mov eax, dword [edi + 0x44]
inc ecx
sub eax, dword [edi + 0x40]
cdq
idiv dword [ebp - 0x64]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
jb 0x41b1c2
push 0x18
pop ecx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
cdq
idiv ecx
test eax, eax
je 0x41b23b
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov eax, dword [edi + 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
jmp 0x41b370
mov edx, 0x4894d8
lea ecx, [ebp - 0x108]
lea ebx, [eax + 0x10]
call fcn.004090d3
mov edx, ebx
mov ecx, eax
call fcn.004065d8
mov edx, str.___
mov ecx, eax
call fcn.004090d3
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x20]
push 0x18
cdq
pop ecx
idiv ecx
and dword [ebp - 0x5c], 0
test eax, eax
je 0x41b2f2
xor edi, edi
mov esi, dword [ebx + 0x20]
lea ecx, [ebp - 0x108]
mov edx, 0x4894d4
add esi, edi
call fcn.004090d3
mov edx, esi
mov ecx, eax
call fcn.004065d8
mov esi, 0x421184
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0x18
pop eax
add edi, eax
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x24]
inc ecx
sub eax, dword [ebx + 0x20]
cdq
idiv dword [ebp - 0x64]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
jb 0x41b29c
mov edi, dword [ebp - 0x68]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
je 0x41b34f
lea edx, [ecx + 0x10]
lea ecx, [ebp - 0x108]
lea esi, [edx + 0x18]
call fcn.004065d8
mov edx, 0x4894dc
mov ecx, eax
call fcn.004090d3
mov edx, esi
mov ecx, eax
call fcn.004065d8
mov esi, 0x421184
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x5c]
call fcn.00401b18
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebx + 0x18]
jne 0x41b2fe
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00421000
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x60]
call fcn.00401b18
mov eax, dword [ebp - 0x60]
cmp eax, dword [edi + 0x38]
jne 0x41b248
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.0041f68e
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004061c2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push ebx
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b435
push ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 2
push 0x4894e0
push edi
call ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x118]
call fcn.0041f68e
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
call fcn.0041f68e
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x41b407
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x60]
add eax, eax
push edx
push eax
push ecx
push edi
call ebx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004061c2
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004061c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0xb0]
call fcn.0041f6aa
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004061c2
mov al, bl
call fcn.00461ae2
ret