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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x40
lea rbx, [rcx + 0x30f8]
mov rsi, rcx
mov rcx, rbx
call section..text
xor r14d, r14d
mov r11d, eax
test eax, eax
jne 0x1400340d7
lea edi, [rax + 1]
cmp dword [rbx], r14d
jne 0x1400340da
mov edi, r14d
mov eax, dword [rsi + 0xe8]
add eax, 0x3fffffff
mov dword [rsi + 0x10c], eax
test edi, edi
je 0x1400340f7
mov eax, dword [rbx]
mov dword [rsi + 0x3aa0], eax
cmp qword [rsi + 0x3a88], r14
je 0x140034155
test r11d, r11d
je 0x140034155
cmp qword [rsi + 0x3aa8], r14
jne 0x140034185
movzx edx, word [0x1400506c0]
mov rcx, rsi
call fcn.140027d80
mov qword [rsi + 0x3aa8], rax
test rax, rax
jne 0x140034149
cmp dword [reloc.WS2_32.dll_accept], r14d
je 0x140034185
lea rdx, str.CheckNATMappings:_Failed_to_allocate_port_5350_UDP_multicast_socket_for_NAT_PMP_announcements
xor ecx, ecx
call fcn.140025bd0
mov dword [reloc.WS2_32.dll_accept], r14d
jmp 0x140034185
mov dword [reloc.WS2_32.dll_accept], 1
jmp 0x140034185
mov rcx, qword [rsi + 0x3aa8]
test rcx, rcx
je 0x14003416d
call fcn.140027f40
mov qword [rsi + 0x3aa8], r14
mov rcx, qword [rsi + 0x3ba0]
test rcx, rcx
je 0x140034185
call fcn.140027f40
mov qword [rsi + 0x3ba0], r14
mov eax, dword [rsi + 0xe8]
cmp qword [rsi + 0x3a88], r14
jne 0x1400341a4
add eax, 0x78000000
mov dword [rsi + 0x3a9c], eax
jmp 0x140034258
cmp eax, dword [rsi + 0x3a9c]
js 0x140034240
xor edx, edx
mov rcx, rsi
call fcn.14002fb50
mov r11d, eax
test eax, eax
jne 0x14003420a
mov ecx, dword [0x140071c90]
mov r8d, dword [rsi + 0x3a98]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp r8d, eax
jge 0x1400341e6
mov dword [rsi + 0x3a98], eax
jmp 0x14003420a
imul ecx, ecx, 0x384
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp r8d, eax
jge 0x140034204
lea eax, [r8 + r8]
mov dword [rsi + 0x3a98], eax
jmp 0x14003420a
mov dword [rsi + 0x3a98], ecx
cmp dword [0x14006badc], r14d
je 0x14003422e
mov r9d, dword [rsi + 0x3a98]
lea rdx, str.CheckNATMappings_retryGetAddr_sent_address_request_err__d_interval__d
mov r8d, r11d
mov ecx, 3
call fcn.140025bd0
mov eax, dword [rsi + 0x3a98]
add eax, dword [rsi + 0xe8]
mov dword [rsi + 0x3a9c], eax
mov ecx, dword [rsi + 0x3a9c]
mov eax, dword [rsi + 0x10c]
sub eax, ecx
test eax, eax
jle 0x140034258
mov dword [rsi + 0x10c], ecx
cmp qword [rsi + 0x3a90], r14
je 0x14003426f
lea rdx, str.WARNING_m__CurrentNATTraversal_already_in_use
xor ecx, ecx
call fcn.140025bd0
mov rax, qword [rsi + 0x3a88]
movsxd r13, edi
mov qword [rsi + 0x3a90], rax
test rax, rax
je 0x1400345d8
mov qword [rsp + 0x68], r12
lea r12, [rsi + 0x3aa0]
mov qword [rsp + 0x60], rbp
nop word [rax + rax]
mov rdi, qword [rsi + 0x3a90]
mov rax, qword [rdi]
mov qword [rsi + 0x3a90], rax
test r13, r13
je 0x1400342c3
mov dword [rdi + 8], r14d
mov dword [rdi + 0x14], r14d
jmp 0x140034350
cmp byte [rdi + 0x98], r14b
je 0x140034350
mov ecx, dword [rsi + 0xe8]
cmp ecx, dword [rdi + 0x10]
js 0x14003433b
mov eax, dword [rdi + 8]
test eax, eax
je 0x1400342fc
cmp eax, ecx
jns 0x1400342fc
mov dword [rdi + 8], r14d
mov eax, dword [0x140071c90]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rdi + 0xc], eax
mov rdx, rdi
mov rcx, rsi
call fcn.14002fb50
mov eax, dword [rdi + 8]
test eax, eax
je 0x1400343a6
sub eax, dword [rsi + 0xe8]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0xc], eax
mov ecx, dword [0x140071c90]
add ecx, ecx
cmp eax, ecx
jge 0x14003432f
mov dword [rdi + 0xc], ecx
mov eax, dword [rsi + 0xe8]
add eax, dword [rdi + 0xc]
mov dword [rdi + 0x10], eax
mov ecx, dword [rdi + 0x10]
mov eax, dword [rsi + 0x10c]
sub eax, ecx
test eax, eax
jle 0x140034350
mov dword [rsi + 0x10c], ecx
mov r8d, dword [0x140071c90]
cmp dword [r12], r14d
jne 0x140034378
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 3
cmp dword [rsi + 0x3a98], eax
jle 0x1400345c1
mov ebp, dword [rdi + 0x14]
test ebp, ebp
jne 0x140034398
mov rcx, r12
call section..text
mov r8d, dword [0x140071c90]
neg eax
sbb ebp, ebp
and ebp, 0xfffeffea
test r13, r13
je 0x1400343ea
movzx ebx, word [rdi + 0x9a]
jmp 0x140034406
mov ecx, dword [0x140071c90]
mov r8d, dword [rdi + 0xc]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp r8d, eax
jge 0x1400343c8
mov dword [rdi + 0xc], eax
jmp 0x14003432f
imul ecx, ecx, 0x384
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp r8d, eax
jge 0x14003432c
lea eax, [r8 + r8]
mov dword [rdi + 0xc], eax
jmp 0x14003432f
cmp dword [r12], r14d
je 0x1400343ff
cmp dword [rdi + 8], r14d
je 0x1400343ff
movzx ebx, word [rdi + 0x9c]
jmp 0x140034406
movzx ebx, word [0x1400506ec]
movzx ecx, byte [rdi + 0x98]
test cl, cl
je 0x140034434
test r13, r13
jne 0x140034434
cmp dword [rdi + 8], r14d
jne 0x140034434
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 3
cmp dword [rdi + 0xc], eax
jle 0x1400345c1
mov eax, dword [r12]
cmp dword [rdi + 0x88], eax
jne 0x140034455
cmp word [rdi + 0x8c], bx
jne 0x140034455
cmp dword [rdi + 0x94], ebp
je 0x1400345c1
test cl, cl
je 0x140034514
test bx, bx
jne 0x140034514
cmp dword [rsi + 0x30e4], r14d
je 0x140034514
test ebp, ebp
jne 0x1400344ce
cmp dword [0x14006badc], r14d
je 0x140034514
movzx eax, word [rdi + 0x9a]
mov dword [rsp + 0x38], r14d
lea r9, [rsi + 0x30e0]
movzx ecx, al
shr ax, 8
mov r8, rdi
shl cx, 8
movzx edx, cx
movzx ecx, al
mov eax, dword [rdi + 0xc]
or edx, ecx
mov dword [rsp + 0x30], eax
lea ecx, [rbp + 3]
mov dword [rsp + 0x28], edx
lea rdx, str.CheckNATMapping:_Failed_to_obtain_NAT_port_mapping__p_from_router__a_external_address__.4a_internal_port__5d_interval__d_error__d
mov qword [rsp + 0x20], r12
call fcn.140025bd0
jmp 0x140034514
movzx eax, word [rdi + 0x9a]
mov dword [rsp + 0x38], ebp
lea r9, [rsi + 0x30e0]
movzx ecx, al
shr ax, 8
mov r8, rdi
shl cx, 8
movzx edx, cx
movzx ecx, al
mov eax, dword [rdi + 0xc]
or edx, ecx
mov dword [rsp + 0x30], eax
xor ecx, ecx
mov dword [rsp + 0x28], edx
lea rdx, str.CheckNATMapping:_Failed_to_obtain_NAT_port_mapping__p_from_router__a_external_address__.4a_internal_port__5d_interval__d_error__d
mov qword [rsp + 0x20], r12
call fcn.140025bd0
mov eax, dword [r12]
mov r8d, dword [rdi + 8]
mov word [rdi + 0x8c], bx
mov dword [rdi + 0x88], eax
test r8d, r8d
je 0x14003454e
test bx, bx
je 0x14003454e
mov ecx, dword [0x140071c90]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub eax, dword [rsi + 0xe8]
add eax, r8d
cdq
idiv ecx
jmp 0x140034551
mov eax, r14d
mov dword [rdi + 0x90], eax
mov dword [rdi + 0x94], ebp
inc dword [rsi + 0x3c]
mov eax, dword [rsi + 0x3c]
mov r9d, dword [rsi + 0x38]
cmp r9d, eax
je 0x140034585
lea r8, str.CheckNATMappings
lea rdx, str._s:_Locking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140025bd0
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x140034599
mov rdx, rdi
mov rcx, rsi
call rax
mov r9d, dword [rsi + 0x38]
mov eax, dword [rsi + 0x3c]
cmp r9d, eax
je 0x1400345be
lea r8, str.CheckNATMappings
lea rdx, str._s:_Unlocking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140025bd0
dec dword [rsi + 0x3c]
cmp qword [rsi + 0x3a90], r14
jne 0x1400342a0
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop rdi
ret