Function at 0x417a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0510
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4e42e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x4e9734
mov edi, dword [ebp + 0xc]
push 0x4e20
call fcn.00424910
test al, al
je 0x417ae4
call fcn.00425480
mov ebx, eax
push str.Write_to_file:
push ebx
call fcn.0040b300
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x417a67
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040b8d0
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebx + 4]
push eax
call fcn.00412740
push str.void___cdecl_System::_anonymous_namespace::writeToFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
push 0x63
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 0x4e20
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x417ae4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417ada
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417da9
push edx
push ecx
call fcn.0047242a
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x417aee
mov eax, dword [esi]
push 0
push 0x80000080
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417bc6
push 0x9c40
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x417d8d
call fcn.00425480
mov edi, eax
push str.Failed_to_create_file
push edi
call fcn.0040b300
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x417b49
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0040b8d0
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [edi + 4]
push eax
call fcn.00412740
push str.void___cdecl_System::_anonymous_namespace::writeToFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
push 0x69
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push 0x9c40
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x417d8d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417bb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417dae
push edx
push ecx
call fcn.0047242a
add esp, 8
jmp 0x417d8d
cmp dword [edi + 0x14], 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], eax
jb 0x417bdb
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x44]
push ecx
push dword [eax]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417ca1
push 0x9c40
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x417d86
call fcn.00425480
mov edi, eax
push str.Error_while_write_to_file
push edi
call fcn.0040b300
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x417c2a
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0040b8d0
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [edi + 4]
push eax
call fcn.00412740
push str.void___cdecl_System::_anonymous_namespace::writeToFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
push 0x70
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
push 0x9c40
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x417d86
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417d7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417db3
jmp 0x417d7c
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi]
je 0x417d86
push 0x9c40
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x417d86
call fcn.00425480
push str.Error:_not_all_written_to
push eax
mov dword [ebp - 0x48], eax
call fcn.0040b300
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x417ce7
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0040b8d0
push str.._Size
push eax
call fcn.0040b300
add esp, 0x14
mov ecx, eax
push str.._Actually_written
push dword [edi]
call fcn.0040d5a0
push eax
call fcn.0040b300
add esp, 8
mov ecx, eax
push dword [ebp - 0x44]
call fcn.0040d5a0
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ecx + 4]
call fcn.00412740
push str.void___cdecl_System::_anonymous_namespace::writeToFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
push 0x78
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 3
push eax
push 0x9c40
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x2c]
add esp, 0x18
cmp edx, 0x10
jb 0x417d86
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417d7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417db8
push edx
push ecx
call fcn.0047242a
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472897
mov esp, ebp
pop ebp
ret
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
int3