Function at 0x407af0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
mov rax, qword [0x006d1040]
mov r14d, r8d
mov qword [rsp + 0x20], rcx
mov r15, rdx
mov r8, rdx
mov ecx, r14d
mov rdx, r9
mov rdi, qword [rax]
mov qword [rsp + 0x288], rdi
xor edi, edi
call fcn.004356e0
lea rbp, [rsp + 0xa0]
lea rdx, [0x00684447]
mov rcx, rbp
call fcn.00406230
mov rcx, qword [0x006d01f0]
mov rdx, rbp
call fcn.005fdcd0
mov rdi, qword [0x006d01f0]
lea rdx, [rdi + 8]
cmp rax, rdx
je 0x407e90
mov rcx, qword [rsp + 0xa0]
lea rax, [rbp + 0x10]
lea rdi, [rsp + 0xc0]
cmp rcx, rax
je 0x407b88
call fcn.00670500
mov rcx, rdi
lea r12, [rsp + 0x80]
call fcn.0042bd80
lea rdx, [0x0068445c]
mov rcx, r12
call fcn.0059e9c0
lea rax, [rsp + 0x60]
lea rdx, [0x0068446a]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.0059e9c0
lea rbx, [rsp + 0x110]
mov edx, 0x10
mov rcx, rbx
call fcn.00651a90
lea rax, [0x005a2e40]
lea rsi, [rsp + 0xe0]
mov rdx, qword [rsp + 0x60]
mov r9d, 1
mov rcx, rbx
mov dword [rsp + 0xe8], 1
lea r8, [rsi + 0x10]
mov qword [rsp + 0xf8], rax
lea rax, [0x005a34d0]
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe0], r8
mov qword [rsp + 0x100], rax
call fcn.005a0520
lea rdx, [rbx + 8]
mov rcx, rbp
call fcn.005d4680
mov rcx, rbx
call fcn.00652170
lea rcx, [0x0068446e]
call fcn.006175e0
movabs rdx, 0x7fffffffffffffff
sub rdx, qword [rsp + 0xa8]
mov r8, rax
cmp rax, rdx
ja 0x408117
lea rdx, [0x0068446e]
mov rcx, rbp
call fcn.006426e0
lea rdx, [rsi + 0x10]
mov qword [rsp + 0xe0], rdx
mov rcx, qword [rax]
lea rdx, [rax + 0x10]
cmp rcx, rdx
je 0x4080d0
mov qword [rsp + 0xe0], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rax + 8]
mov r8, rdi
mov qword [rsp + 0xe8], rcx
mov qword [rax], rdx
mov rcx, rbx
mov qword [rax + 8], 0
mov byte [rax + 0x10], 0
mov rdx, rsi
call fcn.00663b10
lea rcx, [0x00684470]
call fcn.006175e0
movabs rdx, 0x7fffffffffffffff
sub rdx, qword [rsp + 0x118]
mov r8, rax
cmp rax, rdx
ja 0x408292
lea rdx, [0x00684470]
mov rcx, rbx
call fcn.006426e0
lea r13, [rsp + 0x40]
lea rdx, [r13 + 0x10]
mov qword [rsp + 0x40], rdx
mov rcx, qword [rax]
lea rdx, [rax + 0x10]
cmp rcx, rdx
je 0x4080b0
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rax + 8]
mov byte [rax + 0x10], 0
mov qword [rsp + 0x48], rcx
mov qword [rax], rdx
mov qword [rax + 8], 0
mov rcx, qword [rsp + 0x110]
lea rax, [rbx + 0x10]
cmp rcx, rax
je 0x407d66
call fcn.00670500
mov rcx, qword [rsp + 0xe0]
lea rax, [rsi + 0x10]
cmp rcx, rax
je 0x407d7c
call fcn.00670500
mov rcx, qword [rsp + 0xa0]
add rbp, 0x10
cmp rcx, rbp
je 0x407d92
call fcn.00670500
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
add rax, 0x10
cmp rcx, rax
je 0x407daa
call fcn.00670500
mov rcx, qword [rsp + 0x80]
add r12, 0x10
cmp rcx, r12
je 0x407dc0
call fcn.00670500
mov rcx, qword [rsp + 0xc0]
lea rax, [rdi + 0x10]
cmp rcx, rax
je 0x407dd6
call fcn.00670500
lea rdx, str._version
mov rcx, rbx
call fcn.00406230
mov rcx, qword [0x006d01f0]
mov rdx, rbx
call fcn.005fdcd0
mov rdx, qword [0x006d01f0]
add rdx, 8
cmp rax, rdx
je 0x407fd0
mov rcx, qword [rsp + 0x110]
add rbx, 0x10
cmp rcx, rbx
je 0x407e1e
call fcn.00670500
mov rsi, qword [rsp + 0x40]
mov rbx, qword [sym.imp.msvcrt.dll___iob_func]
call rbx
lea rdx, [rax + 0x30]
mov rcx, rsi
call sub.msvcrt.dll_fputs
xor eax, eax
cmp r14d, 1
jle 0x4080f0
mov rcx, qword [rsp + 0x40]
add r13, 0x10
cmp rcx, r13
je 0x407e5f
mov dword [rsp + 0x20], eax
call fcn.00670500
mov eax, dword [rsp + 0x20]
mov rsi, qword [0x006d1040]
mov rdi, qword [rsp + 0x288]
xor rdi, qword [rsi]
jne 0x40828d
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0xc0]
lea rdx, [0x0068444a]
mov rcx, rdi
call fcn.00406230
mov rcx, qword [0x006d01f0]
mov rdx, rdi
call fcn.005fdcd0
mov rbx, qword [0x006d01f0]
lea rdx, [rbx + 8]
cmp rax, rdx
je 0x408190
mov r12d, 1
mov rcx, qword [rsp + 0xc0]
lea rax, [rdi + 0x10]
cmp rcx, rax
je 0x407ee6
call fcn.00670500
mov rcx, qword [rsp + 0xa0]
lea rax, [rbp + 0x10]
cmp rcx, rax
je 0x407efc
call fcn.00670500
test r12b, r12b
jne 0x407b88
xor ecx, ecx
call fcn.00433320
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov rdx, rax
call fcn.0046cc00
cmp dword [rsp + 0x38], 3
je 0x40823f
lea rsi, [rsp + 0xe0]
lea rdx, [0x0068424b]
mov rcx, rsi
call fcn.00406230
lea rdx, [0x0068448d]
mov rcx, rdi
call fcn.00406230
lea rbx, [rsp + 0x110]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.00432e90
mov rbp, qword [rsp + 0x110]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
lea rdx, [0x00684498]
mov r8, rbp
call sub.msvcrt.dll_fprintf
mov rcx, qword [rsp + 0x110]
add rbx, 0x10
cmp rcx, rbx
je 0x407f9a
call fcn.00670500
mov rcx, qword [rsp + 0xc0]
add rdi, 0x10
cmp rcx, rdi
je 0x407fb0
call fcn.00670500
mov rcx, qword [rsp + 0xe0]
add rsi, 0x10
cmp rcx, rsi
je 0x407fc6
call fcn.00670500
mov eax, 1
jmp 0x407e5f
mov rcx, qword [rsp + 0x110]
lea rax, [rbx + 0x10]
cmp rcx, rax
jne 0x408330
mov rdx, r15
mov rcx, rsi
call fcn.004129a0
lea rax, [rdi + 0x10]
mov rcx, rdi
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
add r8, rdx
call fcn.00406040
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0xc8], rax
je 0x4082d9
lea rdx, [0x00684470]
mov r8d, 1
mov rcx, rdi
call fcn.006426e0
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.00663b10
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, r13
call fcn.006426e0
mov rcx, qword [rsp + 0x110]
add rbx, 0x10
cmp rcx, rbx
je 0x40807c
call fcn.00670500
mov rcx, qword [rsp + 0xc0]
add rdi, 0x10
cmp rcx, rdi
je 0x408092
call fcn.00670500
mov rcx, qword [rsp + 0xe0]
add rsi, 0x10
cmp rcx, rsi
jne 0x407e19
jmp 0x407e1e
mov r9, qword [rax + 0x10]
mov r10, qword [rax + 0x18]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r10
jmp 0x407d38
mov r9, qword [rax + 0x10]
mov r10, qword [rax + 0x18]
mov qword [rsp + 0xf0], r9
mov qword [rsp + 0xf8], r10
jmp 0x407caa
call rbx
lea r9, [rax + 0x60]
lea rcx, [0x00684472]
mov r8d, 0x1a
mov edx, 1
call sub.msvcrt.dll_fwrite
mov eax, 1
jmp 0x407e44
lea rcx, [0x00683d99]
call fcn.0065f820
mov rbx, rax
mov rcx, qword [rsp + 0xa0]
add rbp, 0x10
cmp rcx, rbp
je 0x40813c
call fcn.00670500
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
add rdx, 0x10
cmp rcx, rdx
je 0x408154
call fcn.00670500
mov rcx, qword [rsp + 0x80]
add r12, 0x10
cmp rcx, r12
je 0x40816a
call fcn.00670500
mov rcx, qword [rsp + 0xc0]
add rdi, 0x10
cmp rcx, rdi
je 0x408180
call fcn.00670500
mov rcx, rbx
call fcn.0058e700
nop dword [rax + rax]
lea rsi, [rsp + 0xe0]
lea rdx, str._help
mov rcx, rsi
call fcn.00406230
mov rcx, qword [0x006d01f0]
mov rdx, rsi
call fcn.005fdcd0
mov rbx, qword [0x006d01f0]
lea rdx, [rbx + 8]
cmp rax, rdx
je 0x4081ef
mov r12d, 1
nop dword [rax]
mov rcx, qword [rsp + 0xe0]
add rsi, 0x10
cmp rcx, rsi
je 0x407ed0
call fcn.00670500
jmp 0x407ed0
lea rbx, [rsp + 0x110]
lea rdx, str._version
mov rcx, rbx
call fcn.00406230
mov rcx, qword [0x006d01f0]
mov rdx, rbx
call fcn.005fdcd0
mov rdx, qword [0x006d01f0]
mov rcx, qword [rsp + 0x110]
add rdx, 8
cmp rdx, rax
setne r12b
add rbx, 0x10
cmp rcx, rbx
je 0x4081d0
call fcn.00670500
jmp 0x4081d0
mov rdx, qword [0x006d01e0]
mov rcx, qword [0x006d01f0]
mov r8, r15
call fcn.00434ec0
lea rbx, [rsp + 0x110]
mov rcx, rbx
call fcn.0042a9a0
mov rcx, rbx
call fcn.0042b0b0
mov rcx, qword [rsp + 0x110]
add rbx, 0x10
cmp rcx, rbx
je 0x408283
call fcn.00670500
mov eax, 0xffffffff
jmp 0x407e5f
call fcn.00582f30
lea rcx, [0x00683d99]
call fcn.0065f820
mov rcx, qword [rsp + 0x110]
add rbx, 0x10
mov r13, rax
cmp rcx, rbx
je 0x4082b7
call fcn.00670500
mov rbx, r13
mov rcx, qword [rsp + 0xe0]
add rsi, 0x10
cmp rcx, rsi
je 0x408126
call fcn.00670500
jmp 0x408126
lea rcx, [0x00683d99]
call fcn.0065f820
mov rbx, rax
mov rcx, qword [rsp + 0xc0]
add rdi, 0x10
cmp rcx, rdi
je 0x4082fe
call fcn.00670500
mov rcx, qword [rsp + 0xe0]
add rsi, 0x10
cmp rcx, rsi
je 0x408314
call fcn.00670500
mov rcx, qword [rsp + 0x40]
add r13, 0x10
cmp rcx, r13
jne 0x40817b
jmp 0x408180
call fcn.00670500
jmp 0x407fe5