Function at 0x1400044d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, qword [rcx]
mov r14, rcx
lea rcx, str._AsusSync_HFPController__RecvAtCommand____s_n
mov rdi, rdx
call fcn.1400959a0
test rdi, rdi
je 0x140004a12
mov qword [rsp + 0xc0], rbx
lea rdx, [0x14010cb28]
mov qword [rsp + 0x88], rbp
mov rcx, rdi
mov qword [rsp + 0x80], rsi
call fcn.1400c43e4
test rax, rax
je 0x140004540
cmp eax, edi
mov ebx, edi
mov eax, edi
je 0x140004564
jmp 0x140004542
mov eax, edi
lea rdx, str.ERROR
mov rcx, rdi
mov ebx, eax
call fcn.1400c43e4
test rax, rax
je 0x1400045f6
cmp eax, ebx
jne 0x1400045f6
lea rcx, str._AsusSync_HFPController__RecvAtCommand_wait_for_queue_mutex_Event_n
call fcn.1400959a0
mov rcx, qword [r14 + 0x3d]
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1400049fa
lea rdx, [0x14010cb28]
mov rcx, rdi
mov ebp, 0xffffffff
call fcn.1400c43e4
test rax, rax
je 0x1400045a5
mov ebp, eax
sub ebp, ebx
mov rbx, qword [r14 + 0x45]
xor esi, esi
test ebp, ebp
setne sil
test rbx, rbx
je 0x1400045dd
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
cmp rcx, r8
je 0x1400045dd
mov eax, reloc.WS2_32.dll_inet_ntoa
lea rdx, [rcx + 4]
cmp dword [rcx], eax
cmove esi, eax
sub r8, rdx
call fcn.1400c4a50
add qword [rbx + 8], 0xfffffffffffffffc
mov rcx, qword [r14 + 0x3d]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov edx, esi
mov rcx, r15
call fcn.140006e20
jmp 0x1400049fa
lea rdx, str.BRSF:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x140004643
cmp eax, ebx
jne 0x140004643
xor esi, esi
mov dword [rsp + 0x28], esi
add rdi, 6
je 0x14000463a
mov eax, dword [rdi]
lea r8, [rsp + 0x28]
lea rdx, [0x14010b618]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x20]
call fcn.14000a8a0
mov esi, dword [rsp + 0x28]
mov dword [r14 + 0x25], esi
jmp 0x1400049fa
lea rdx, str.CHLD:__
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x14000465f
cmp eax, ebx
je 0x1400049fa
lea rdx, str.CIND:__
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x140004775
mov esi, ebx
cmp eax, ebx
jne 0x140004777
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140004694
mov edx, 0xb5
call fcn.1400c2470
mov ecx, 0xb5
call fcn.1400c2704
xor edx, edx
mov qword [rsp + 0x20], rax
mov r8d, 0xb5
mov rcx, rax
mov rbx, rax
call fcn.1400c5120
xor esi, esi
mov byte [rbx + 0x3c], 0
lea rdx, str.callsetup
mov qword [rbx + 0x45], rsi
lea rcx, str.call
mov qword [rbx + 0x14], rdx
lea r8, str.battchg
mov qword [rbx + 0xc], rcx
lea rax, str.service
mov qword [rbx + 0x1c], r8
lea r9, str.signal
mov qword [rbx + 0x4d], rcx
lea r10, str.roam
mov qword [rbx + 0x5d], rdx
lea r11, str.callheld
mov qword [rbx + 0x6d], r8
mov qword [rbx + 4], rax
lea r8, [rdi + 7]
mov qword [rbx + 0x24], r9
mov ebp, 0xa
mov dword [rbx], ebp
xor edx, edx
mov qword [rbx + 0x2c], r10
mov rcx, rbx
mov qword [rbx + 0x34], r11
mov qword [rbx + 0x3d], rax
mov qword [rbx + 0x55], rsi
mov qword [rbx + 0x65], rsi
mov qword [rbx + 0x75], rsi
mov qword [rbx + 0x7d], r9
mov qword [rbx + 0x85], rsi
mov qword [rbx + 0x8d], r10
mov qword [rbx + 0x95], rsi
mov qword [rbx + 0x9d], r11
mov qword [rbx + 0xa5], rsi
mov qword [rbx + 0xad], rsi
mov qword [r14 + 0x10], rbx
call fcn.140003e10
jmp 0x1400049fa
mov esi, edi
lea rdx, str.CIND:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x14000495a
mov esi, ebx
cmp eax, ebx
jne 0x14000495a
mov rbp, qword [r14 + 0x10]
test rbp, rbp
je 0x1400049fa
xorps xmm0, xmm0
lea r9, [rdi + 7]
xor esi, esi
lea rdi, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
test r9, r9
je 0x140004847
lea r8, [0x14010ce18]
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000a910
mov ebx, esi
cmp dword [rbp + 0xad], esi
jle 0x14000484b
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [0x14010cdc4]
call fcn.1400ccaf0
test rax, rax
je 0x14000484b
mov rcx, rax
call fcn.1400cdff0
mov rcx, rsi
lea r8, [rbp + 0x45]
lea edx, [rbx + 1]
cmp dword [r8], edx
je 0x14000482f
inc rcx
add r8, 0x10
cmp rcx, 7
jl 0x140004818
jmp 0x140004836
add rcx, rcx
mov dword [rbp + rcx*8 + 0x49], eax
mov rdi, qword [rsp + 0x20]
inc ebx
cmp ebx, dword [rbp + 0xad]
jl 0x1400047f0
jmp 0x14000484b
mov ebx, dword [rsp + 0x20]
mov dword [rbp + 0xb1], ebx
mov rcx, qword [r14 + 0x10]
cmp byte [rcx + 0x3c], sil
je 0x140004894
mov eax, dword [rcx + 0xb1]
cmp dword [rcx + 0xad], eax
jne 0x140004894
cmp dword [rcx + 0x59], 1
jne 0x140004876
mov ebp, 0xa
jmp 0x140004899
mov eax, dword [rcx + 0x69]
cmp eax, 1
jne 0x140004883
lea ebp, [rax + 8]
jmp 0x140004899
add eax, 0xfffffffe
mov ebp, esi
cmp eax, 1
setbe bpl
add ebp, 7
jmp 0x140004899
mov ebp, 0xffffffff
mov edx, ebp
lea rcx, str._AsusSync_HFPController__RecvAtCommand___Call_HfpIndicators::GetCurrentState_returned__d_n
call fcn.1400959a0
mov r9, qword [r15 + 0x10]
xor eax, eax
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
mov dword [rsp + 0x34], reloc.WS2_32.dll_listen
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x44], ebp
test r9, r9
je 0x1400049fa
cmp byte [r9 + 0x92], al
jne 0x1400049fa
movsxd rcx, dword [r9 + 0x94]
movups xmm0, xmmword [rsp + 0x30]
mov rax, qword [r9 + 0x86]
shl rcx, 5
movups xmmword [rcx + rax], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rcx + rax + 0x10], xmm1
mov ecx, dword [r9 + 0x94]
mov eax, dword [r9 + 0x8e]
dec eax
mov byte [r9 + 0x93], sil
cmp ecx, eax
lea edx, [rcx + 1]
cmovge edx, esi
mov dword [r9 + 0x94], edx
cmp edx, dword [r9 + 0x98]
jne 0x140004944
mov byte [r9 + 0x92], 1
mov rcx, qword [r9 + 0x7e]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
jmp 0x1400049fa
lea rdx, str.CCWA:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x140004978
mov esi, ebx
cmp eax, ebx
je 0x1400049fa
lea rdx, str.CLIP:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x1400049a1
mov esi, ebx
cmp eax, ebx
jne 0x1400049a1
mov edx, reloc.WS2_32.dll_listen
mov rcx, r15
call fcn.140006e20
jmp 0x1400049fa
lea rdx, str.CLCC:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x1400049d6
cmp eax, esi
jne 0x1400049d6
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400049fa
lea rdx, [rdi + 7]
test rdx, rdx
je 0x1400049fa
lea r8, [rcx + 7]
call fcn.140003c20
jmp 0x1400049fa
lea rdx, str.CIEV:
mov rcx, rdi
call fcn.1400c43e4
test rax, rax
je 0x1400049fa
cmp eax, esi
jne 0x1400049fa
lea rdx, [rdi + 7]
mov rcx, r14
call fcn.140004a30
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x90
pop r15
pop r14
pop rdi
ret