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

Disassembly:
push 0x10c
mov eax, 0x46afda
call fcn.00466ebb
mov edi, ecx
mov dword [ebp - 0x68], edi
lea eax, [edi + 8]
cmp dword [eax + 0x10], 0
jne 0x41daad
xor al, al
jmp 0x41dd98
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.00422397
mov byte [ebp - 4], 1
mov esi, 0x423deb
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 0x41db56
xor ebx, ebx
mov esi, dword [edi + 0x40]
lea ecx, [ebp - 0x108]
mov edx, 0x47dd24
add esi, ebx
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423deb
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423c67
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 0x41db00
push 0x18
pop ecx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
cdq
idiv ecx
test eax, eax
je 0x41db79
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423c67
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 0x41dcae
mov edx, 0x47dd28
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.00423c67
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 0x41dc30
xor edi, edi
mov esi, dword [ebx + 0x20]
lea ecx, [ebp - 0x108]
mov edx, 0x47dd24
add esi, edi
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423deb
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423c67
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 0x41dbda
mov edi, dword [ebp - 0x68]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
je 0x41dc8d
lea edx, [ecx + 0x10]
lea ecx, [ebp - 0x108]
lea esi, [edx + 0x18]
call fcn.004065c1
mov edx, 0x47dd2c
mov ecx, eax
call fcn.00409102
mov edx, esi
mov ecx, eax
call fcn.004065c1
mov esi, 0x423deb
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423c67
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 0x41dc3c
push esi
push ecx
lea ecx, [ebp - 0x108]
call fcn.00423c67
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 0x41db86
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.0042234b
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 0x41dd73
push ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 2
push 0x47dd30
push edi
call ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x118]
call fcn.0042234b
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
call fcn.0042234b
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x41dd45
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.00422367
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.00466e65
ret