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

Disassembly:
sub esp, 0x128
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x14c]
mov dword [esp + 0x20], ecx
mov cx, word [esp + 0x154]
mov word [esp + 0x1a], cx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x174]
mov ecx, eax
and cl, 2
neg cl
sbb cl, cl
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x158]
mov ebp, dword [esp + 0x168]
and cl, 0x1e
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x16c]
add cl, 2
mov esi, dword [esp + 0x140]
mov dword [esi], edx
mov edx, dword [esp + 0x164]
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x170]
mov dword [esi + 4], ecx
xor ecx, ecx
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x160]
mov edi, dword [esp + 0x148]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], edx
mov dword [esp + 0x30], edi
cmp ebp, dword [0x1019b324]
jne 0x10114f2b
lea ebx, [ecx + 2]
jmp 0x10114f4f
cmp ebp, dword [0x1019b32c]
jne 0x10114f3a
mov ebx, 3
jmp 0x10114f4f
cmp ebp, dword [0x1019b31c]
jne 0x10114f4d
test al, 1
je 0x10114f4d
mov ebx, 1
jmp 0x10114f4f
xor ebx, ebx
push esi
push 0x10114d50
push ebx
push 4
push 0x1194
push 0xc
push ebp
lea eax, [esi + 0x18]
push ecx
push eax
call fcn.101194c0
push esi
push 0x10114d50
push ebx
push 8
push 0x1194
push 0xc
push ebp
lea eax, [esi + 0x384]
push 0
push eax
call fcn.101194c0
add esp, 0x48
push 0x1019a830
push edi
call fcn.101187c0
mov edx, dword [esp + 0x2c]
push esi
push 0x10114d50
neg eax
push ebx
sbb eax, eax
push edx
and eax, 0xffffff92
add eax, 0x78
push eax
push 0x21
push ebp
lea ecx, [esi + 0x6f0]
push 0
push ecx
mov dword [esp + 0x48], ecx
call fcn.101194c0
push esi
push 0x10114d50
push ebx
push 2
push 0x1194
push 0x10
push ebp
lea eax, [esi + 0xa5c]
push 0
push eax
call fcn.101194c0
add esp, 0x50
cmp word [esp + 0x1a], 0
jne 0x10115023
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push 0x1010d8f0
push ebp
push 0
push eax
mov eax, dword [esp + 0x28]
push edi
push ecx
push edx
push eax
call fcn.101124a0
add esp, 0x28
jmp 0x10115468
mov eax, dword [esi + 0xa80]
mov cx, word [esp + 0x15c]
cmp word [eax], cx
jae 0x10115039
mov word [eax], cx
mov ecx, dword [esp + 0x14]
push ecx
push str._a_dns_sd
lea edx, [esi + 0x178]
push str._t_services
push edx
call fcn.10118da0
add esp, 0x10
test eax, eax
jne 0x10115065
mov eax, 0xfffefffc
jmp 0x10115468
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esi + 0x4e4]
push 0
push ecx
call fcn.10118da0
add esp, 0x10
test eax, eax
je 0x1011505b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edx
push edi
lea eax, [esi + 0x850]
push ecx
push eax
call fcn.10118da0
add esp, 0x10
test eax, eax
je 0x1011505b
mov eax, dword [esi + 0x710]
lea edx, [eax + 0x100]
push edx
push eax
call fcn.101188e0
movzx eax, ax
mov ecx, 0x100
add esp, 8
cmp ax, cx
ja 0x101150dd
movzx edx, ax
mov eax, dword [esi + 0x710]
push edx
push eax
lea ecx, [esi + 0xbbc]
push ecx
call fcn.10118460
add esp, 0xc
jmp 0x101150e4
mov byte [esi + 0xbbc], 0
mov eax, dword [esi + 0x3a4]
lea edx, [eax + 0x100]
push edx
push eax
call fcn.101188e0
movzx eax, ax
mov ecx, 0x100
add esp, 8
cmp ax, cx
ja 0x10115123
mov ecx, dword [esi + 0x3c]
movzx edx, ax
mov eax, dword [esi + 0x3a4]
push edx
push eax
add ecx, 4
push ecx
call fcn.10118460
add esp, 0xc
jmp 0x1011512a
mov edx, dword [esi + 0x3c]
mov byte [edx + 4], 0
mov eax, dword [esi + 0x710]
lea ecx, [eax + 0x100]
push ecx
push eax
call fcn.101188e0
movzx eax, ax
mov edx, 0x100
add esp, 8
cmp ax, dx
ja 0x1011516c
mov ecx, dword [esi + 0x710]
mov edx, dword [esi + 0x3a8]
movzx eax, ax
push eax
push ecx
add edx, 4
push edx
call fcn.10118460
add esp, 0xc
jmp 0x10115176
mov eax, dword [esi + 0x3a8]
mov byte [eax + 4], 0
mov ecx, dword [esp + 0x1c]
xor edi, edi
lea eax, [esi + 0xa5c]
mov dword [esi + 0x3b0], ecx
mov dword [esi + 0x3b4], eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x164], edi
jbe 0x101152c6
nop
mov edx, dword [esi + 0x14]
mov eax, dword [edx + edi + 0x20]
lea ecx, [eax + 0x100]
push ecx
push eax
call fcn.101188e0
movzx eax, ax
mov edx, 0x100
add esp, 8
cmp ax, dx
ja 0x101151df
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi + 0x20]
movzx eax, ax
push eax
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10118460
add esp, 0xc
jmp 0x101151e4
mov byte [esp + 0x34], 0
mov edx, dword [esp + 0x30]
movzx ecx, byte [esp + 0x34]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + ecx + 0x3d], 0
call fcn.10118c40
mov ecx, dword [esi + 0x14]
push esi
push 0x10114d50
push ebx
push 8
push 0x1194
push 0xc
push ebp
add ecx, edi
push 0
push ecx
call fcn.101194c0
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x14]
push edx
lea eax, [esp + 0x64]
push eax
lea edx, [ecx + edi + 0x160]
push 0
push edx
call fcn.10118da0
add esp, 0x3c
test eax, eax
je 0x1011505b
lea eax, [esi + 0x950]
push eax
lea eax, [esi + 0x850]
push eax
call fcn.101188e0
movzx eax, ax
mov ecx, 0x100
add esp, 8
cmp ax, cx
ja 0x10115285
movzx edx, ax
push edx
lea eax, [esi + 0x850]
push eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi + 0x24]
add ecx, 4
push ecx
call fcn.10118460
add esp, 0xc
jmp 0x10115290
mov edx, dword [esi + 0x14]
mov eax, dword [edx + edi + 0x24]
mov byte [eax + 4], 0
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x6f0]
mov dword [ecx + edi + 0x2c], eax
mov edx, dword [esi + 0x14]
lea eax, [esi + 0xa5c]
mov dword [edx + edi + 0x30], eax
mov eax, dword [esp + 0x1c]
inc eax
add edi, 0x36c
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x164]
jb 0x101151a0
mov eax, dword [esi + 0x714]
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov word [eax + 4], cx
mov edx, dword [esi + 0x714]
xor eax, eax
mov word [edx + 6], ax
mov ecx, dword [esi + 0x714]
mov dx, word [esp + 0x1a]
mov word [ecx + 8], dx
test edi, edi
je 0x1011533b
cmp byte [edi], al
je 0x1011533b
lea eax, [edi + 0x100]
push eax
push edi
call fcn.101188e0
movzx eax, ax
mov ecx, 0x100
add esp, 8
cmp ax, cx
ja 0x1011532f
movzx edx, ax
mov eax, dword [esi + 0x714]
push edx
add eax, 0xa
push edi
push eax
call fcn.10118460
add esp, 0xc
jmp 0x1011534b
mov ecx, dword [esi + 0x714]
mov byte [ecx + 0xa], 0
jmp 0x1011534b
mov edx, dword [esi + 0x714]
mov byte [esi + 0x734], 1
mov byte [edx + 0xa], al
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x1011535e
xor eax, eax
mov word [esi + 0xa6c], ax
jmp 0x10115391
mov eax, dword [esi + 0xa80]
lea ecx, [eax + 4]
cmp edi, ecx
je 0x10115391
mov dx, word [esp + 0x15c]
mov word [esi + 0xa6c], dx
cmp dx, word [eax]
ja 0x1011505b
movzx edx, dx
push edx
push edi
push ecx
call fcn.10118460
add esp, 0xc
mov ebx, dword [esp + 0x10]
push str.mDNS_RegisterService
lea edi, [esi + 0x6f0]
push ebx
mov dword [esi + 0xa90], edi
call fcn.1011b070
push edi
push ebx
call fcn.1010e600
mov edi, eax
add esp, 0x10
test edi, edi
je 0x101153d1
push str.mDNS_RegisterService
push ebx
call fcn.1011b2f0
add esp, 8
mov eax, edi
jmp 0x10115468
lea eax, [esi + 0xa5c]
push eax
push ebx
call fcn.1010e600
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x101153f6
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.1010e600
add esp, 8
mov ebp, eax
cmp dword [esp + 0x164], 0
jbe 0x10115432
mov eax, dword [esp + 0x164]
xor edi, edi
mov dword [esp + 0x10], eax
lea ecx, [ecx]
test ebp, ebp
jne 0x10115425
mov ecx, dword [esi + 0x14]
add ecx, edi
push ecx
push ebx
call fcn.1010e600
add esp, 8
mov ebp, eax
add edi, 0x36c
sub dword [esp + 0x10], 1
jne 0x10115410
test ebp, ebp
jne 0x10115448
lea eax, [esi + 0x384]
push eax
push ebx
call fcn.1010e600
add esp, 8
mov ebp, eax
push str.mDNS_RegisterService
push ebx
call fcn.1011b2f0
add esp, 8
test ebp, ebp
je 0x10115466
push 0
push esi
push ebx
call fcn.10112360
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0x128
ret