Function at 0x40ff66
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xc], 0
mov rax, qword [0x0059e340]
mov qword [rbp - 0x18], rax
jmp 0x410078
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 0x40]
shr eax, 5
and eax, 0xfffff
and eax, 0x1040
test eax, eax
jne 0x41006b
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x48]
and eax, 0x10
test al, al
jne 0x41006b
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x88]
mov qword [rbp - 0x20], rax
jmp 0x41005e
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x40ffff
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x68]
mov rdx, qword [rax + 0xf0]
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
cmp rdx, rax
je 0x410052
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
and eax, 0x300000
test eax, eax
jne 0x410052
cmp dword [rbp - 0xc], 0
jne 0x410041
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x0052e665]
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x20]
mov edx, 1
mov rcx, rax
call fcn.00413e56
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x40ffd3
jmp 0x41006c
nop
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x40ff88
lea rcx, str._nMemory_Configuration_n_n
call fcn.00426b84
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
lea rdx, str.Attributes
mov qword [rsp + 0x28], rdx
lea rdx, str.Length
mov qword [rsp + 0x20], rdx
lea r9, str.Origin
lea r8, str.Name
lea rdx, str.__16s___18s___18s__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [0x0059e528]
mov qword [rbp - 8], rax
jmp 0x4101de
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r8, rdx
lea rdx, str.__16s
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x20]
lea rax, [rbp - 0x90]
mov r8, rdx
lea rdx, [0x0052e6d4]
mov rcx, rax
call sub.msvcrt.dll_sprintf
lea rax, [rbp - 0x90]
mov rdx, rax
lea rcx, [0x0052e6dd]
call fcn.00426b84
lea rax, [rbp - 0x90]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 0x24], eax
jmp 0x410157
call fcn.00426cdc
add dword [rbp - 0x24], 1
cmp dword [rbp - 0x24], 0xf
jle 0x41014e
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov rdx, rax
lea rcx, [0x0052e6e3]
call fcn.00426b84
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x48]
test eax, eax
jne 0x41018a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x4c]
test eax, eax
je 0x4101cd
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x48]
test eax, eax
je 0x4101a8
call fcn.00426cdc
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x48]
mov ecx, eax
call fcn.0040fee6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x4c]
test eax, eax
je 0x4101cd
lea rcx, [0x0052e6e8]
call fcn.00426b84
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x4c]
mov ecx, eax
call fcn.0040fee6
call fcn.00426d03
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4100df
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r9, rax
mov r8d, 0x1f
mov edx, 1
lea rcx, str._nLinker_script_and_memory_map_n_n
call sub.msvcrt.dll_fwrite
mov rax, qword [0x005867d0]
movzx eax, byte [rax + 4]
and eax, 0x10
test al, al
jne 0x41026a
mov rax, qword [sub.msvcrt.dll_free]
mov qword [rsp + 0x20], rax
mov r9, qword [fcn.004fb406]
mov r8d, 0
mov edx, 0x3e8
lea rcx, [0x0059e3e0]
call fcn.004f97ac
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x28]
mov r8d, 0
lea rdx, [0x004102bd]
mov rcx, rax
call fcn.0044126e
mov rax, qword [0x005866a0]
mov dword [rax], 5
mov eax, dword [0x0059e370]
add eax, 1
mov dword [0x0059e370], eax
call fcn.00414b03
mov rax, qword [0x005865e0]
mov rdx, qword [rax + 0x58]
mov rax, qword [0x005867d0]
mov rax, qword [rax + 0x50]
mov r8, rdx
mov rdx, qword [0x005867d0]
mov rcx, rax
call fcn.004253d5
nop
add rsp, 0xc0
pop rbp
ret