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

Disassembly:
push 0x10c
mov eax, 0x46b7c1
call fcn.004676d8
mov edi, ecx
mov dword [ebp - 0x68], edi
lea eax, [edi + 8]
cmp dword [eax + 0x10], 0
jne 0x41d9fb
xor al, al
jmp 0x41dce6
push eax
lea ecx, [ebp - 0x28]
call fcn.004086d8
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.004222e5
mov byte [ebp - 4], 1
mov esi, 0x423d39
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 0x41daa4
xor ebx, ebx
mov esi, dword [edi + 0x40]
lea ecx, [ebp - 0x108]
mov edx, 0x47dd3c
add esi, ebx
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423d39
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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 0x41da4e
push 0x18
pop ecx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
cdq
idiv ecx
test eax, eax
je 0x41dac7
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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 0x41dbfc
mov edx, 0x47dd40
lea ecx, [ebp - 0x108]
lea ebx, [eax + 0x10]
call fcn.00409102
mov edx, ebx
mov ecx, eax
call fcn.004065c1
mov edx, str.___
mov ecx, eax
call fcn.00409102
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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 0x41db7e
xor edi, edi
mov esi, dword [ebx + 0x20]
lea ecx, [ebp - 0x108]
mov edx, 0x47dd3c
add esi, edi
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423d39
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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 0x41db28
mov edi, dword [ebp - 0x68]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
je 0x41dbdb
lea edx, [ecx + 0x10]
lea ecx, [ebp - 0x108]
lea esi, [edx + 0x18]
call fcn.004065c1
mov edx, 0x47dd44
mov ecx, eax
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423d39
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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.00401e05
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebx + 0x18]
jne 0x41db8a
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423bb5
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.00401e05
mov eax, dword [ebp - 0x60]
cmp eax, dword [edi + 0x38]
jne 0x41dad4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.00422299
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004061ab
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 0x41dcc1
push ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 2
push 0x47dd48
push edi
call ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x118]
call fcn.00422299
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
call fcn.00422299
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x41dc93
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.004061ab
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004061ab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0xb0]
call fcn.004222b5
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.004061ab
mov al, bl
call fcn.00467682
ret