Function at 0x140017050
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x500], rbx
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov edx, dword [rdx + 0x2c]
cmp edx, 0x1f1a
jg 0x14001733f
je 0x1400171c4
lea eax, [rdx - 0x1b1a]
test eax, 0xfffffeff
je 0x1400170e7
lea eax, [rdx - 0x1d1a]
test eax, 0xfffffeff
jne 0x140017469
add rcx, 0xffffffffffffff78
call fcn.1400182f0
mov dword [rsp + 0x30], 1
jmp 0x140017469
mov r14d, dword [r13 + 0x30]
cmp edx, 0x1c1a
jne 0x1400170f9
mov esi, dword [r13 + 0x34]
jmp 0x1400170fd
mov esi, dword [rsp + 0x34]
mov r9d, r14d
lea r8, str.CEnhanceCallerService::Update:_SessionID:__d
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.1400223d4
mov r8d, 4
lea rdx, [rbp + 0x190]
lea rcx, [rdi - 0x88]
call fcn.14001ca50
mov rax, qword [rdi + 0x260]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400171b7
cmp dword [rbx + 0x10], r14d
jne 0x14001716a
mov eax, dword [r13 + 0x2c]
cmp eax, 0x1b1a
je 0x14001717f
cmp eax, 0x1c1a
jne 0x14001716a
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp esi, eax
jne 0x14001716a
test esi, esi
jne 0x140017176
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x260]
jmp 0x14001713e
mov dword [rbx + 0x20], 1
jmp 0x1400171b7
mov dword [rbx + 0x20], 1
lea r8, str.CEnhanceCallerService::Update:_Kill_Temped
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.1400223d4
mov r8d, 4
lea rdx, [rbp + 0x190]
lea rcx, [rdi - 0x88]
call fcn.14001ca50
mov dword [rsp + 0x30], 1
jmp 0x140017469
cmp dword [r13 + 0x30], 4
jne 0x140017469
cmp byte [rcx - 0x6c], r12b
je 0x140017469
cmp dword [rcx + 0x294], r12d
jne 0x140017469
lea rcx, [rsp + 0x48]
call fcn.14001c080
lea rsi, vtable.SynDevice.1.0
mov qword [rsp + 0x40], rsi
lea r14, vtable.SynDevice.0
mov qword [rsp + 0x50], r14
lea r15, vtable.CDummySynDevice.0
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r12d
mov rcx, r12
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x38], r12d
mov rax, qword [rdi + 0x2a8]
test rax, rax
je 0x1400172fb
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140017243
lea rcx, [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov edx, 0x10000002
call qword [rax + 0x30]
mov ebx, r12d
cmp dword [rsp + 0x38], ebx
jle 0x1400172f6
lea eax, [rbx - 1]
mov dword [rsp + 0x34], eax
mov rax, qword [rdi + 0x2a8]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14001727b
lea rcx, [rax + 0x10]
mov rax, qword [rcx]
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x1400172ea
mov edx, dword [rsp + 0x34]
cmp edx, ebx
jne 0x1400172ea
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x48]
test rax, rax
cmovne rcx, rax
mov rax, qword [rcx]
call qword [rax + 0x78]
test eax, eax
jne 0x1400172ea
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov edx, 0x100031c
cmp dword [rdi + 0x2a4], 0
je 0x1400172d6
test rax, rax
cmovne rcx, rax
xor r8d, r8d
jmp 0x1400172e4
test rax, rax
cmovne rcx, rax
mov r8d, dword [rdi + 0x284]
mov rax, qword [rcx]
call qword [rax + 0x30]
inc ebx
cmp ebx, dword [rsp + 0x38]
jl 0x140017260
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], r14
test rcx, rcx
je 0x140017315
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r15
lea rax, vtable.SynWrapEvents_class_SynDevice__struct_ISynDevice__struct__ISynDeviceEvents_.0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140017469
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140017469
cmp edx, 0x201a
je 0x1400173af
cmp edx, 0x211a
je 0x14001736a
cmp edx, 0x221a
jne 0x140017469
mov eax, dword [rcx + 0x288]
mov dword [rsp + 0x30], eax
jmp 0x140017469
mov rax, qword [rcx + 0x270]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi + 0x270]
mov qword [rax + 8], rax
mov qword [rdi + 0x278], r12
cmp rcx, qword [rdi + 0x270]
je 0x140017469
mov rbx, qword [rcx]
call fcn.140020a7c
mov rcx, rbx
cmp rbx, qword [rdi + 0x270]
jne 0x140017396
jmp 0x140017469
lea rdx, [rbp - 0x80]
mov ecx, dword [r13 + 0x34]
call fcn.140019c10
test eax, eax
je 0x140017469
mov r10, qword [rdi + 0x270]
mov rax, qword [r10]
cmp rax, r10
je 0x140017417
nop dword [rax]
nop word [rax + rax]
lea r9, [rax + 0x10]
lea rcx, [rbp - 0x80]
sub r9, rcx
nop dword [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x140017406
add rcx, 2
test edx, edx
jne 0x1400173f0
test r8d, r8d
je 0x1400171b7
mov rax, qword [rax]
cmp rax, r10
jne 0x1400173e0
mov rbx, r10
lea r9, [rbp - 0x80]
mov r8, qword [r10 + 8]
mov rdx, r10
call fcn.14001c400
mov rdx, rax
mov rax, qword [rdi + 0x278]
movabs rcx, 0x7a44c6afc2dd9b
sub rcx, rax
cmp rcx, 1
jae 0x140017454
lea rcx, str.list_T__too_long
call fcn.140034074
int3
inc rax
mov qword [rdi + 0x278], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov r8, qword [r13 + 0x18]
mov r9, qword [rdi + 0x258]
mov rax, qword [r9 + 0x20]
mov rdx, qword [r9 + 0x28]
cmp rax, rdx
je 0x1400174d0
mov rcx, qword [rax]
cmp r8, qword [rcx + 0x18]
je 0x140017495
add rax, 8
cmp rax, rdx
jne 0x140017481
jmp 0x1400174d0
mov rbx, rcx
test rcx, rcx
je 0x1400174d0
mov rdx, rcx
mov rcx, r9
call fcn.1400023d0
test eax, eax
je 0x1400174d0
mov dword [rsp + 0x34], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140020aa0
mov rbx, qword [rsp + 0x500]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret