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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, esp
cmp dword [ecx + 0x28], 4
jne 0x839906
cmp dword [edx + 0x28], 4
jne 0x839906
mov eax, dword [ecx]
lea edi, [eax + 4]
mov dword [esi + 0x10], edi
mov edi, dword [edx]
lea ebx, [edi + 4]
mov dword [esi + 0xc], ebx
add eax, 7
and eax, 0xfffffffc
call fcn.00526390
mov ebx, esp
push dword [esi + 0x10]
push 0
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
add edi, 7
and edi, 0xfffffffc
mov eax, edi
call fcn.00526390
mov edi, esp
push dword [esi + 0xc]
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
lea ecx, [esi + 0x40]
push dword [esi + 0x10]
mov dword [esi + 0x14], ebx
push ebx
call fcn.00858080
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], 0x3f800000
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
lea ecx, [esi + 0x20]
push dword [esi + 0xc]
mov dword [esi + 8], edi
push edi
call fcn.00858080
xorps xmm0, xmm0
movups xmmword [esi + 0x2c], xmm0
mov dword [esi + 0x3c], 0x3f800000
lea ecx, [esi + 0x40]
push dword [esi + 0x18]
call fcn.00858ab0
mov bh, al
lea ecx, [esi + 0x20]
push dword [esi + 0x1c]
call fcn.00858ab0
mov bl, al
test bh, bh
jne 0x839735
push str.external_openscreen_discovery_mdns_mdns_records.cc
push 4
call fcn.0075e090
add esp, 8
test al, al
je 0x839735
mov dword [esi + 0x60], 4
mov dword [esi + 0x64], str.external_openscreen_discovery_mdns_mdns_records.cc
mov dword [esi + 0x68], 0x3e
lea ecx, [esi + 0xac]
mov dword [esi + 0x74], 0x866ac4
lea edi, [esi + 0x78]
mov dword [esi + 0x6c], 0x866be8
mov dword [esi + 0xac], 0x866bfc
mov dword [esi + 0x70], 0
push edi
call fcn.004cf350
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0x6c], 0x866ab0
mov dword [esi + 0xac], 0x866ad8
mov dword [esi + 0x74], 0x866ac4
mov ecx, edi
call fcn.004cf9a0
mov dword [esi + 0x78], 0x865954
xorps xmm0, xmm0
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa8], 0x18
push 0xa
push 0x946045
lea eax, [esi + 0x74]
push eax
call fcn.00402f60
add esp, 0xc
push 9
push str.lhs_write
push eax
call fcn.00402f60
add esp, 0xc
push 0xa
push 0x946073
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [esi + 0x60]
call fcn.0060f450
test bl, bl
jne 0x839820
push str.external_openscreen_discovery_mdns_mdns_records.cc
push 4
call fcn.0075e090
add esp, 8
test al, al
je 0x839820
mov dword [esi + 0x60], 4
mov dword [esi + 0x64], str.external_openscreen_discovery_mdns_mdns_records.cc
mov dword [esi + 0x68], 0x3f
lea ecx, [esi + 0xac]
lea ebx, [esi + 0x74]
mov dword [esi + 0x74], 0x866ac4
lea edi, [esi + 0x78]
mov dword [esi + 0x6c], 0x866be8
mov dword [esi + 0xac], 0x866bfc
mov dword [esi + 0x70], 0
push edi
call fcn.004cf350
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0x6c], 0x866ab0
mov dword [esi + 0xac], 0x866ad8
mov dword [esi + 0x74], 0x866ac4
mov ecx, edi
call fcn.004cf9a0
mov dword [esi + 0x78], 0x865954
xorps xmm0, xmm0
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa8], 0x18
push 0xa
push 0x946045
push ebx
call fcn.00402f60
add esp, 0xc
push 9
push str.rhs_write
push eax
call fcn.00402f60
add esp, 0xc
push 0xa
push 0x946073
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [esi + 0x60]
call fcn.0060f450
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
cmp eax, ecx
cmovae eax, ecx
cmp eax, 3
jb 0x839882
mov ecx, dword [esi + 0x14]
movzx ecx, byte [ecx + 2]
mov edx, dword [esi + 8]
movzx edx, byte [edx + 2]
mov bl, 1
cmp cl, dl
jne 0x83987a
mov edi, 3
mov ebx, dword [esi + 0x14]
nop word cs:[eax + eax]
cmp eax, edi
je 0x839886
movzx ecx, byte [ebx + edi]
mov edx, dword [esi + 8]
movzx edx, byte [edx + edi]
inc edi
cmp cl, dl
je 0x839860
dec edi
cmp edi, eax
setb bl
cmp cl, dl
seta byte [esi + 8]
jmp 0x839889
xor ebx, ebx
jmp 0x839889
seta bl
mov eax, dword [esi + 0x34]
test eax, eax
je 0x8398a1
mov edi, dword [eax]
push eax
call fcn.0051c570
add esp, 4
mov eax, edi
test edi, edi
jne 0x839890
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], 0
test eax, eax
je 0x8398b8
push eax
call fcn.0051c570
add esp, 4
mov eax, dword [esi + 0x54]
test eax, eax
je 0x8398d1
nop
mov edi, dword [eax]
push eax
call fcn.0051c570
add esp, 4
mov eax, edi
test edi, edi
jne 0x8398c0
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test eax, eax
je 0x8398e8
push eax
call fcn.0051c570
add esp, 4
xor ecx, ecx
mov eax, dword [esi + 0xc]
cmp dword [esi + 0x10], eax
seta cl
test bl, bl
movzx eax, byte [esi + 8]
cmove eax, ecx
and al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00488d90
nop dword [eax + eax]