Function at 0x140017250
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 [0x1400512d0]
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 0x14001757e
je 0x1400173c4
lea eax, [rdx - 0x1b1a]
test eax, 0xfffffeff
je 0x1400172e7
lea eax, [rdx - 0x1d1a]
test eax, 0xfffffeff
jne 0x1400176a9
add rcx, 0xffffffffffffff78
call fcn.1400185e0
mov dword [rsp + 0x30], 1
jmp 0x1400176a9
mov r14d, dword [r13 + 0x30]
cmp edx, 0x1c1a
jne 0x1400172f9
mov esi, dword [r13 + 0x34]
jmp 0x1400172fd
mov esi, dword [rsp + 0x34]
mov r9d, r14d
lea r8, str.CEnhanceCallerService::Update:_SessionID:__d
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.140022fa4
mov r8d, 4
lea rdx, [rbp + 0x190]
lea rcx, [rdi - 0x88]
call fcn.14001c700
mov rax, qword [rdi + 0x260]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400173b7
cmp dword [rbx + 0x10], r14d
jne 0x14001736a
mov eax, dword [r13 + 0x2c]
cmp eax, 0x1b1a
je 0x14001737f
cmp eax, 0x1c1a
jne 0x14001736a
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp esi, eax
jne 0x14001736a
test esi, esi
jne 0x140017376
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x260]
jmp 0x14001733e
mov dword [rbx + 0x20], 1
jmp 0x1400173b7
mov dword [rbx + 0x20], 1
lea r8, str.CEnhanceCallerService::Update:_Kill_Temped
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.140022fa4
mov r8d, 4
lea rdx, [rbp + 0x190]
lea rcx, [rdi - 0x88]
call fcn.14001c700
mov dword [rsp + 0x30], 1
jmp 0x1400176a9
mov r9d, dword [r13 + 0x30]
cmp r9d, 2
je 0x140017554
cmp r9d, 4
je 0x140017402
test byte [0x1400512b0], 4
je 0x1400176a9
lea r8, str.Get_SynCom_Notify_Reason:__x_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::Update
call fcn.1400205a0
jmp 0x1400176a9
test byte [0x1400512b0], 4
je 0x140017423
lea r8, str.TP_DBC_DEVICE_ARRIVED_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::Update
call fcn.1400205a0
cmp byte [rdi - 0x6c], r12b
je 0x1400176a9
cmp dword [rdi + 0x28c], r12d
jne 0x1400176a9
lea rcx, [rsp + 0x48]
call fcn.14001bd30
lea rax, vtable.SynDevice.1.0
mov qword [rsp + 0x40], rax
lea rax, vtable.SynDevice.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CDummySynDevice.0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x38], r12d
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
jne 0x14001748a
lea rcx, [rdi + 0x2a8]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov edx, 0x10000002
call qword [rax + 0x30]
mov ebx, r12d
cmp dword [rsp + 0x38], ebx
jle 0x140017545
nop word [rax + rax]
lea eax, [rbx - 1]
mov dword [rsp + 0x34], eax
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
jne 0x1400174ca
lea rcx, [rdi + 0x2a8]
mov rax, qword [rcx]
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x140017539
mov edx, dword [rsp + 0x34]
cmp edx, ebx
jne 0x140017539
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 0x140017539
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov edx, 0x100031c
cmp dword [rdi + 0x290], 0
je 0x140017525
test rax, rax
cmovne rcx, rax
xor r8d, r8d
jmp 0x140017533
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 0x1400174b0
lea rcx, [rsp + 0x40]
call fcn.140013990
jmp 0x1400176a9
test byte [0x1400512b0], 4
je 0x1400176a9
lea r8, str.TP_DBC_DEVICE_REMOVED_n
mov edx, 3
lea rcx, str.CEnhanceCallerService::Update
call fcn.1400205a0
jmp 0x1400176a9
cmp edx, 0x201a
je 0x1400175ee
cmp edx, 0x211a
je 0x1400175a9
cmp edx, 0x221a
jne 0x1400176a9
mov eax, dword [rcx + 0x288]
mov dword [rsp + 0x30], eax
jmp 0x1400176a9
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 0x1400176a9
mov rbx, qword [rcx]
call fcn.140021650
mov rcx, rbx
cmp rbx, qword [rdi + 0x270]
jne 0x1400175d5
jmp 0x1400176a9
lea rdx, [rbp - 0x80]
mov ecx, dword [r13 + 0x34]
call fcn.1400197c0
test eax, eax
je 0x1400176a9
mov r10, qword [rdi + 0x270]
mov rax, qword [r10]
cmp rax, r10
je 0x140017657
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 0x140017646
add rcx, 2
test edx, edx
jne 0x140017630
test r8d, r8d
je 0x1400173b7
mov rax, qword [rax]
cmp rax, r10
jne 0x140017620
mov rbx, r10
lea r9, [rbp - 0x80]
mov r8, qword [r10 + 8]
mov rdx, r10
call fcn.14001c0b0
mov rdx, rax
mov rax, qword [rdi + 0x278]
movabs rcx, 0x7a44c6afc2dd9b
sub rcx, rax
cmp rcx, 1
jae 0x140017694
lea rcx, str.list_T__too_long
call fcn.140034e84
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 0x140017710
mov rcx, qword [rax]
cmp r8, qword [rcx + 0x18]
je 0x1400176d5
add rax, 8
cmp rax, rdx
jne 0x1400176c1
jmp 0x140017710
mov rbx, rcx
test rcx, rcx
je 0x140017710
mov rdx, rcx
mov rcx, r9
call fcn.1400023d0
test eax, eax
je 0x140017710
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.140021670
mov rbx, qword [rsp + 0x500]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret