Function at 0x4095a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
test rdx, rdx
mov rdi, rcx
mov rbx, rdx
mov qword [rsp + 0x68], r8
mov r14, r8
je 0x4095d2
test r8, r8
je 0x4095d2
cmp qword [r8 + 8], 0
jne 0x4095f0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r9
mov ebp, 0x40000000
call sub.msvcrt.dll_strlen
lea rcx, [rax + 3]
mov rsi, rax
call sub.msvcrt.dll_malloc
lea r8, [rsi + 2]
mov edx, 0x20
mov r15, rax
mov rcx, rax
mov qword [rsp + 0x60], rax
call sub.msvcrt.dll_memset
mov byte [r15 + rsi + 2], 0
mov eax, dword [r14]
cmp eax, 1
je 0x40963b
cmp eax, 7
mov eax, 0xfefefefe
cmovne ebp, eax
xor r13d, r13d
lea rax, [rbx + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x50], 0
je 0x4097fa
mov qword [rsp + 0x50], r13
mov r15, rdi
nop
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
lea r9, [0x00410712]
lea rbx, [rax + rax*2]
mov rax, qword [rsp + 0x68]
shl rbx, 4
add rbx, qword [rax + 0x58]
mov rdx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x20]
mov edx, dword [rax + rdx*4]
call fcn.00402980
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x20]
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx]
test eax, eax
je 0x409701
mov rcx, qword [rbx + 8]
lea rdi, str.virtual
movzx edx, byte [rcx + 0x10]
mov esi, dword [rcx + 8]
mov eax, edx
shr al, 3
and eax, 0xf
and edx, 7
je 0x4096de
lea rdi, [0x00410712]
cmp dl, 3
lea rdx, str.static
cmove rdi, rdx
test esi, esi
sete r8b
cmp dword [rsp + 0x5c], ebp
sete dl
and eax, 0xfffffffe
and edx, r8d
lea r8, [0x004107d8]
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
mov rax, qword [rbx + 8]
lea rsi, str.static
movzx edx, word [rax + 0xc]
mov edi, dword [rax + 8]
cmp dx, 1
je 0x40972f
lea rsi, str.CONST
cmp dx, 2
lea rdx, [0x00410712]
cmovne rsi, rdx
cmp dword [rsp + 0x5c], ebp
jne 0x409820
test edi, edi
jne 0x409820
mov edx, dword [rax + 4]
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.00404130
mov r8, qword [rsp + 0x60]
mov r9, rsi
mov rcx, r15
lea rdx, str._s_s_s
mov qword [rsp + 0x20], rax
mov r12, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
lea edx, [rax - 3]
cmp edx, 1
jbe 0x4098c0
cmp eax, 1
je 0x4097a0
cmp eax, 7
jne 0x409900
nop word cs:[rax + rax]
mov r9, r15
mov r8d, 2
mov edx, 1
lea rcx, [0x004107d5]
call sub.msvcrt.dll_fwrite
test r12, r12
je 0x4097c7
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x4097d9
mov rcx, rax
call sub.msvcrt.dll_free
mov ebp, dword [rsp + 0x5c]
mov rdi, qword [rsp + 0x68]
add qword [rsp + 0x50], 1
mov rax, qword [rsp + 0x50]
add ebp, 1
cmp rax, qword [rdi + 0x50]
jb 0x409660
mov rcx, qword [rsp + 0x60]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
call sub.msvcrt.dll_fprintf
mov ecx, dword [rsp + 0x5c]
mov eax, 1
cmp ecx, ebp
je 0x409861
cmp ecx, 0xff
ja 0x409942
lea rdx, str.id__u_
mov r8d, ecx
mov rcx, r15
call sub.msvcrt.dll_fprintf
xor eax, eax
lea r12, str.readonly
test edi, edi
lea rbp, [0x00410783]
je 0x40989d
test dil, 1
je 0x409895
mov r13, qword [r12]
cmp byte [r13], 0
je 0x409895
test eax, eax
je 0x4098e5
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_fputs
xor eax, eax
add r12, 8
shr edi, 1
jne 0x409873
mov r9, r15
mov r8d, 2
mov edx, 1
lea rcx, [0x0041078f]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx + 8]
jmp 0x409741
mov rax, qword [rbx + 8]
mov r8d, dword [rax + 0x10]
test r8d, r8d
je 0x4097a0
lea rdx, str.___d
mov rcx, r15
call sub.msvcrt.dll_fprintf
jmp 0x4097a0
mov r9, r15
mov r8d, 2
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_fwrite
jmp 0x409888
mov rax, qword [rbx + 8]
cmp dword [rax + 0x10], 0xffffffff
je 0x4097a0
mov r9, r15
mov r8d, 3
mov edx, 1
lea rcx, [0x004107c4]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx + 8]
mov rcx, r15
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rax + 0x10]
call fcn.00405d30
jmp 0x4097a0
mov r8d, dword [rsp + 0x5c]
lea rdx, str.id_0x_x_
mov rcx, r15
call sub.msvcrt.dll_fprintf
xor eax, eax
jmp 0x409861
lea r12, str.propputref
test dl, dl
jne 0x409ad0
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
call sub.msvcrt.dll_fprintf
cmp dword [rsp + 0x5c], ebp
je 0x409e58
mov eax, dword [rsp + 0x5c]
cmp eax, 0xff
ja 0x409e34
lea rdx, str.id__u_
mov r8d, eax
mov rcx, r15
call sub.msvcrt.dll_fprintf
cmp byte [r12], 0
je 0x4099da
mov r9, r15
mov r8d, 2
mov edx, 1
lea rcx, [0x00410783]
call sub.msvcrt.dll_fwrite
mov rdx, r15
mov rcx, r12
call sub.msvcrt.dll_fputs
xor eax, eax
test esi, esi
je 0x409a1e
lea r12, str.restricted
lea rbp, [0x00410783]
nop
test sil, 1
je 0x409a16
mov r13, qword [r12]
cmp byte [r13], 0
je 0x409a16
test eax, eax
je 0x409bb4
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_fputs
xor eax, eax
add r12, 8
shr esi, 1
jne 0x4099f0
lea rcx, [0x0041078f]
mov r9, r15
mov r8d, 2
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 4]
lea r8, [0x00410712]
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
call fcn.00404130
mov r12, rax
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + 0x11]
and ecx, 0xf
call fcn.004059a0
mov rsi, qword [rsp + 0x70]
mov r9, rdi
mov rcx, r15
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str._s_s_s__s__s__
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], rsi
call sub.msvcrt.dll_fprintf
mov rax, qword [rbx + 8]
cmp word [rax + 0x14], 0
jne 0x409bd0
mov r9, r15
mov r8d, 7
mov edx, 1
lea rcx, str.void___n
call sub.msvcrt.dll_fwrite
jmp 0x4097ba
lea r12, str.propputputref
test dl, dl
je 0x40996f
nop
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
call sub.msvcrt.dll_fprintf
jmp 0x4099cf
lea r12, str.propget
jmp 0x409967
lea r12, str.propgetputputref
jmp 0x409967
lea r12, str.propgetput
jmp 0x409967
test dl, dl
je 0x409e6d
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
lea r12, str.propput
call sub.msvcrt.dll_fprintf
jmp 0x4099cf
lea r12, str.propgetputref
jmp 0x409967
test dl, dl
jne 0x409a3c
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
call sub.msvcrt.dll_fprintf
cmp dword [rsp + 0x5c], ebp
je 0x409e63
cmp dword [rsp + 0x5c], 0xff
lea r12, [0x00410712]
ja 0x409e34
mov r8d, dword [rsp + 0x5c]
lea rdx, str.id__u_
mov rcx, r15
call sub.msvcrt.dll_fprintf
jmp 0x4099da
mov r9, r15
mov r8d, 2
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_fwrite
jmp 0x409a09
mov rdx, r15
mov ecx, 0xa
xor esi, esi
call sub.msvcrt.dll_fputc
mov rax, qword [rbx + 8]
cmp word [rax + 0x14], 0
je 0x409dae
mov qword [rsp + 0x88], r12
nop word cs:[rax + rax]
mov rax, qword [rbx + 0x18]
movzx r12d, si
lea r13, [r12 + r12*2]
lea rdi, [r13*4]
mov edx, dword [rax + rdi + 4]
cmp edx, 0xffffffff
je 0x409dd0
mov rcx, qword [rsp + 0x48]
lea r9, [0x00410712]
xor r8d, r8d
movzx r14d, si
call fcn.00402980
mov rbp, rax
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov r8, rbp
mov rcx, qword [rsp + 0x48]
mov edx, dword [rax + r13*4]
call fcn.00404130
mov r8, qword [rsp + 0x60]
lea rdx, str._s
mov rcx, r15
mov r13, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [rbx + 0x18]
mov r10d, dword [rax + rdi + 8]
test r10d, r10d
je 0x409d3a
test r10d, 0xffffffdf
mov dword [rsp + 0x80], r10d
je 0x409d3a
mov ecx, 0x5b
mov rdx, r15
call sub.msvcrt.dll_fputc
mov r11d, 1
mov r10d, dword [rsp + 0x80]
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x86], si
mov ecx, 1
mov rsi, r11
mov ebx, r10d
test bl, 1
je 0x409d00
lea rax, [0x00410cf8]
mov r9, qword [rax + rsi*8]
cmp byte [r9], 0
je 0x409d00
lea rax, [0x00410712]
test ecx, ecx
mov rcx, r15
lea r8, [0x00410724]
cmovne r8, rax
lea rdx, str._s_s
call sub.msvcrt.dll_fprintf
xor ecx, ecx
shr ebx, 1
setne dl
cmp esi, 0x1f
setle al
add rsi, 1
test dl, al
jne 0x409cc5
mov r9, r15
mov r8d, 2
mov edx, 1
mov rbx, qword [rsp + 0x78]
lea rcx, [0x004107c1]
movzx esi, word [rsp + 0x86]
call sub.msvcrt.dll_fwrite
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_fputs
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
cmp qword [rbx + 0x10], 0
je 0x409d6b
mov rax, qword [rbx + 0x18]
test byte [rax + rdi + 8], 0x20
jne 0x409e00
mov rdx, qword [rbx + 8]
lea eax, [r14 + 1]
movzx edx, word [rdx + 0x14]
cmp eax, edx
je 0x409d88
mov rdx, r15
mov ecx, 0x2c
call sub.msvcrt.dll_fputc
mov rdx, r15
mov ecx, 0xa
add esi, 1
call sub.msvcrt.dll_fputc
mov rax, qword [rbx + 8]
cmp si, word [rax + 0x14]
jb 0x409c00
mov r12, qword [rsp + 0x88]
mov r8, qword [rsp + 0x60]
lea rdx, str._s___n
mov rcx, r15
call sub.msvcrt.dll_fprintf
jmp 0x4097ba
mov ecx, pe_nt_image_headers64
movzx r14d, si
call sub.msvcrt.dll_malloc
lea r8d, [r14 + 1]
lea rdx, str.argNo_u
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_sprintf
jmp 0x409c3c
mov r9, r15
mov r8d, 3
mov edx, 1
lea rcx, [0x004107c4]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx + 0x10]
mov rcx, r15
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rax + r12*4]
call fcn.00405d30
jmp 0x409d6b
mov r8d, dword [rsp + 0x5c]
lea rdx, str.id_0x_x_
mov rcx, r15
call sub.msvcrt.dll_fprintf
cmp byte [r12], 0
jne 0x4099b5
jmp 0x4099da
cmp byte [r12], 0
jne 0x4099cf
mov eax, 1
jmp 0x4099dc
mov r8, qword [rsp + 0x60]
lea rdx, [0x00410778]
mov rcx, r15
lea r12, str.propput
call sub.msvcrt.dll_fprintf
cmp dword [rsp + 0x5c], ebp
jne 0x40998d
jmp 0x4099cf