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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x855842
push str.external_openscreen_discovery_mdns_mdns_reader.cc
push 4
call fcn.0075e090
add esp, 8
test al, al
je 0x855842
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], str.external_openscreen_discovery_mdns_mdns_reader.cc
mov dword [esp + 0x38], 0x131
lea ecx, [esp + 0x7c]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], 0x866ac4
lea ebx, [esp + 0x48]
mov dword [esp + 0x3c], 0x866be8
mov dword [esp + 0x7c], 0x866bfc
mov dword [esp + 0x40], 0
push ebx
call fcn.004cf350
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x3c], 0x866ab0
mov dword [esp + 0x7c], 0x866ad8
mov dword [esp + 0x44], 0x866ac4
mov ecx, ebx
call fcn.004cf9a0
mov dword [esp + 0x48], 0x865954
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0x18
push 0xa
push 0x947742
push edi
call fcn.00402f60
add esp, 0xc
push 3
push 0x947789
push eax
call fcn.00402f60
add esp, 0xc
push 0xa
push 0x947775
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0060f450
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
lea ebx, [esp + 0x10]
mov ecx, ebx
call fcn.00833c80
mov ecx, esi
push ebx
call fcn.008535c0
test al, al
je 0x85587f
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edx, [eax + 2]
cmp edx, ecx
ja 0x85587f
mov dword [esi + 4], edx
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x8558e6
xor ebx, ebx
mov edi, dword [esp + 0x14]
test edi, edi
je 0x8558d3
mov eax, dword [esp + 0x18]
mov ecx, edi
cmp eax, edi
je 0x8558c6
mov dword [esp + 4], esi
mov esi, ebx
jmp 0x8558a6
mov eax, ebx
cmp ebx, edi
je 0x8558bc
lea ebx, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x8558a0
push dword [eax - 4]
call fcn.0051c570
add esp, 4
jmp 0x8558a0
mov ecx, dword [esp + 0x14]
mov ebx, esi
mov esi, dword [esp + 4]
mov dword [esp + 0x18], edi
push ecx
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
movzx ecx, word [eax]
rol cx, 8
mov word [esp + 0xa], cx
mov dword [esi + 4], edx
movzx eax, word [eax + 2]
rol ax, 8
movzx edi, ax
xorps xmm0, xmm0
movups xmmword [esp + 0x3c], xmm0
movaps xmmword [esp + 0x30], xmm0
lea ecx, [esp + 0x20]
push ebx
call fcn.00833e00
mov eax, edi
and eax, 0x7fff
shr edi, 0xf
movzx ecx, word [esp + 0xa]
lea edx, [esp + 0x30]
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
push edx
call fcn.00837910
add esp, 0x14
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x855990
mov eax, dword [esp + 0x28]
mov ecx, ebx
cmp eax, ebx
jne 0x855966
jmp 0x855983
mov eax, edi
cmp edi, ebx
je 0x85597c
lea edi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x855960
push dword [eax - 4]
call fcn.0051c570
add esp, 4
jmp 0x855960
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], ebx
push ecx
call fcn.0051c570
add esp, 4
movzx ebx, byte [esp + 0x48]
test bl, bl
je 0x855a04
mov ecx, edi
lea eax, [esp + 0x30]
push eax
call fcn.00833e80
movsd xmm0, qword [esp + 0x40]
movsd qword [edi + 0x10], xmm0
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x48], 0
je 0x855a04
mov edx, dword [esp + 0x34]
mov bl, 1
test edx, edx
je 0x855881
mov eax, dword [esp + 0x38]
mov ecx, edx
cmp eax, edx
je 0x855a1b
mov dword [esp + 4], esi
jmp 0x8559e6
mov eax, edi
cmp edi, edx
je 0x855a17
lea edi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x8559e0
push dword [eax - 4]
mov esi, edx
call fcn.0051c570
mov edx, esi
mov esi, dword [esp + 8]
add esp, 4
jmp 0x8559e0
test bl, bl
setne bl
lea ecx, [esp + 0x30]
call fcn.0060d3d0
jmp 0x855881
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], edx
push ecx
call fcn.0051c570
add esp, 4
jmp 0x855881