Function at 0x140002980
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x468], rbx
mov rax, qword [0x1400ab2b8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r15, r8
mov r13, rdx
mov qword [rsp + 0x30], rdx
mov r12, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
xor ecx, ecx
call fcn.140060454
mov rcx, rax
call fcn.14005da54
call fcn.14005da28
xor edi, edi
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x68]
call fcn.140004c30
lea r8d, [rdi + 1]
lea rdx, [0x140093eb0]
lea rcx, [rbp + 0x68]
call fcn.140004cb0
nop
cmp byte [0x1400b19b0], dil
je 0x140002a3b
lea r8d, [rdi + 1]
lea rdx, [0x140093ea4]
lea rcx, [rbp + 0x68]
call fcn.140004cb0
lea rcx, str.Temp
call fcn.1400615fc
mov rbx, rax
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call fcn.140004c30
cmp byte [rbx], 0
jne 0x140002a6a
mov r8, rdi
jmp 0x140002a7a
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140002a70
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.140004cb0
nop
lea r8, [0x140093eb4]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 8]
call fcn.1400062c0
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140006460
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.140004c30
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
lea rdx, [0x140093ebc]
call fcn.14005db3c
mov r14, rax
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.140004c30
xor r8d, r8d
lea rdx, [0x140093e7a]
lea rcx, [rbp - 0x78]
call fcn.140004cb0
nop
mov esi, edi
mov rcx, r15
call fcn.140004b30
mov rcx, rax
call fcn.140060ef0
test eax, eax
jle 0x140002e27
xor r13d, r13d
nop
mov edx, esi
lea rcx, [rbp + 0x88]
call fcn.140001f60
mov rbx, rax
mov r8, r12
lea rdx, [0x140093ec0]
lea rcx, [rbp - 0x58]
call fcn.140006150
nop
lea r8, str._D.1d0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140006240
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400063b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x88]
call fcn.140004c30
lea r8, [0x140093ea0]
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x38]
call fcn.1400062c0
nop
lea r8, [0x1400b1a18]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.140006460
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
mov qword [rbp + 0xb8], r13
mov qword [rbp + 0xc0], r13
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xa8]
call fcn.140004c30
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0xa8]
call fcn.140004d90
nop
mov edi, r13d
xor r8d, r8d
lea rdx, [0x140093e7a]
lea rcx, [rbp - 0x78]
call fcn.140004cb0
lea rdx, [0x140093e7a]
lea rcx, [rbp - 0x78]
call fcn.140004a30
test eax, eax
jne 0x140002d2a
nop word [rax + rax]
inc edi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140004c30
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400b1a58]
lea rcx, [rbp - 0x58]
call fcn.140004d90
nop
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140004c30
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.140004d90
nop
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140007230
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x140002ce0
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004c30
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140005080
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
cmp edi, 0xa
je 0x140002d2a
lea rdx, [0x140093e7a]
lea rcx, [rbp - 0x78]
call fcn.140004a30
test eax, eax
jne 0x140002d12
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140093e7a]
lea rcx, [rbp - 0x78]
call fcn.140004a30
test eax, eax
je 0x140002c40
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.140004ac0
nop
lea rdx, [0x140093ea4]
mov rcx, rax
call fcn.140004a30
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
test bl, bl
je 0x140002dd5
test r14, r14
je 0x140002dd5
mov r9, qword [rbp - 0x68]
dec r9
mov r8d, 1
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.140004ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140008f80
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov r9, r14
mov r8, qword [rsp + 0x78]
mov edx, 1
call fcn.140060338
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa8]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.140004c30
add esi, 0xc8
mov rcx, r15
call fcn.140004b30
mov rcx, rax
call fcn.140060ef0
cmp esi, eax
jl 0x140002b20
mov r13, qword [rsp + 0x30]
test r14, r14
je 0x140002e34
mov rcx, r14
call fcn.14005dbcc
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
lea rdx, [0x140093e94]
call fcn.14005db3c
mov rdi, rax
test rax, rax
je 0x1400030db
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.14000cc20
nop
cmp qword [rax + 0x18], 8
jb 0x140002e72
mov rax, qword [rax]
mov rcx, rax
call fcn.140019b90
mov rbx, rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004bb0
xor esi, esi
mov dword [rbp + 0xd0], esi
mov word [rbp + 0xd4], si
mov dword [rbp + 0x2fc], esi
test rbx, rbx
jne 0x140002eb1
mov dword [0x1400b19dc], 0x10000
jmp 0x140002edb
cmp dword [rbx], 1
je 0x140002ec2
mov dword [0x1400b19dc], 0x80000
jmp 0x140002edb
lea r8, [rbp + 0xd0]
or edx, 0xffffffff
mov rcx, qword [rbx + 8]
call fcn.140018fe0
mov dword [0x1400b19dc], eax
mov dword [rbp + 0xd0], esi
mov word [rbp + 0xd4], si
mov dword [rbp + 0x2fc], esi
test rbx, rbx
jne 0x140002eff
mov dword [0x1400b19dc], 0x10000
jmp 0x140002f28
cmp dword [rbx], 1
je 0x140002f10
mov dword [0x1400b19dc], 0x80000
jmp 0x140002f28
lea r8, [rbp + 0xd0]
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.140018fe0
mov dword [0x1400b19dc], eax
mov rdx, r13
lea rcx, [rbp + 0x88]
call fcn.14000cc20
nop
cmp qword [rax + 0x18], 8
jb 0x140002f42
mov rax, qword [rax]
test rbx, rbx
jne 0x140002f53
mov dword [0x1400b19dc], 0x10000
jmp 0x140002f76
cmp dword [rbx], 1
je 0x140002f64
mov dword [0x1400b19dc], 0x80000
jmp 0x140002f76
mov r8, rax
mov rcx, qword [rbx + 8]
call fcn.140019780
mov dword [0x1400b19dc], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x88]
call fcn.140004bb0
test rbx, rbx
je 0x140002fa0
cmp dword [rbx], 1
sete al
test al, al
je 0x140002fa0
mov rcx, rbx
call fcn.140019c80
jmp 0x140002fa8
mov rcx, rbx
call fcn.14001e820
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
call fcn.14005dc38
mov r8, r12
lea rdx, [0x140093ec0]
lea rcx, [rbp - 0x38]
call fcn.140006150
nop
lea r8, str._0_1
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.140006240
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
lea r8, [0x140093ea0]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x88]
call fcn.1400062c0
nop
lea r8, [0x1400b1a18]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140006460
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x88]
call fcn.140004c30
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140004c30
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400b1a58]
lea rcx, [rsp + 0x68]
call fcn.140004d90
nop
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140004c30
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x58]
call fcn.140004d90
nop
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.140007230
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004c30
mov rcx, rdi
call fcn.14005dbcc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x48]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x68]
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
mov rcx, r12
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
mov rcx, r13
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
mov rcx, r15
call fcn.140004c30
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140034240
mov rbx, qword [rsp + 0x468]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret