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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x40]
mov ecx, eax
and cl, 2
neg cl
sbb cl, cl
mov dword [ebp - 0x11c], edx
mov dx, word [ebp + 0x20]
mov ebx, dword [ebp + 0x34]
and cl, 0x1e
mov word [ebp - 0x112], dx
mov edx, dword [ebp + 0x38]
add cl, 2
mov esi, dword [ebp + 0xc]
mov dword [esi], edx
mov edx, dword [ebp + 0x30]
mov byte [ebp - 0x124], cl
mov ecx, dword [ebp + 0x3c]
mov dword [esi + 4], ecx
xor ecx, ecx
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x2c]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, dword [0x446384]
jne 0x41aac9
mov edi, 2
mov dword [ebp - 0x108], edi
jmp 0x41ab09
cmp ebx, dword [0x44638c]
jne 0x41aae3
mov dword [ebp - 0x108], 3
mov edi, dword [ebp - 0x108]
jmp 0x41ab09
cmp ebx, dword [0x44637c]
jne 0x41ab01
test al, 1
je 0x41ab01
mov dword [ebp - 0x108], 1
mov edi, dword [ebp - 0x108]
jmp 0x41ab09
mov dword [ebp - 0x108], ecx
mov edi, ecx
push esi
push 0x41a910
push edi
push 4
push 0x1194
push 0xc
push ebx
lea eax, [esi + 0x18]
push ecx
push eax
call fcn.004021d0
push esi
push 0x41a910
push edi
push 8
push 0x1194
push 0xc
push ebx
lea eax, [esi + 0x3c8]
push 0
push eax
call fcn.004021d0
mov eax, dword [ebp - 0x11c]
push 0x44d500
push eax
call fcn.00401270
mov edx, dword [ebp - 0x124]
push esi
push 0x41a910
neg eax
push edi
sbb eax, eax
push edx
and eax, 0xffffff92
add eax, 0x78
push eax
push 0x21
push ebx
lea ecx, [esi + 0x778]
push 0
push ecx
mov dword [ebp - 0x110], ecx
call fcn.004021d0
push esi
push 0x41a910
push edi
push 2
push 0x1194
push 0x10
push ebx
lea eax, [esi + 0xb28]
push 0
push eax
call fcn.004021d0
cmp word [ebp - 0x112], 0
jne 0x41abf8
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
and eax, 1
push eax
mov eax, dword [ebp - 0x10c]
push esi
push 0x411450
push ebx
push 0
push eax
mov eax, dword [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x118]
push edx
push eax
push ecx
call fcn.004161b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x3c
mov eax, dword [esi + 0xb4c]
mov cx, word [ebp + 0x28]
cmp word [eax], cx
jae 0x41ac0a
mov word [eax], cx
mov edi, dword [ebp - 0x10c]
push edi
push str._a_dns_sd
push str._t_services
lea edx, [esi + 0x1bc]
push edx
call fcn.00401b00
test eax, eax
jne 0x41ac43
pop edi
pop esi
mov eax, 0xfffefffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x3c
mov eax, dword [ebp - 0x11c]
push edi
push eax
push 0
lea ecx, [esi + 0x56c]
push ecx
call fcn.00401b00
test eax, eax
je 0x41ac2b
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
push edi
push edx
lea eax, [esi + 0x91c]
push ecx
push eax
call fcn.00401b00
test eax, eax
je 0x41ac2b
mov eax, dword [esi + 0x798]
lea edx, [eax + 0x100]
push edx
push eax
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x41acb2
push eax
mov eax, dword [esi + 0x798]
push eax
lea ecx, [esi + 0xccc]
push ecx
call fcn.004205c0
jmp 0x41acb9
mov byte [esi + 0xccc], 0
mov eax, dword [esi + 0x3e8]
lea edx, [eax + 0x100]
push edx
push eax
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x41acef
mov ecx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x3e8]
push eax
add ecx, 4
push ecx
call fcn.004205c0
jmp 0x41acf6
mov edx, dword [esi + 0x3c]
mov byte [edx + 4], 0
mov eax, dword [esi + 0x798]
lea ecx, [eax + 0x100]
push ecx
push eax
call fcn.00401410
movzx eax, ax
mov edx, 0x100
cmp ax, dx
ja 0x41ad2f
mov ecx, dword [esi + 0x798]
mov edx, dword [esi + 0x3ec]
push eax
push ecx
add edx, 4
push edx
call fcn.004205c0
jmp 0x41ad39
mov eax, dword [esi + 0x3ec]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0x110]
xor edi, edi
lea eax, [esi + 0xb28]
mov dword [esi + 0x3f4], ecx
mov dword [esi + 0x3f8], eax
mov dword [ebp - 0x110], edi
cmp dword [ebp + 0x30], edi
jbe 0x41ae8a
mov edx, dword [esi + 0x14]
mov eax, dword [edx + edi + 0x20]
lea ecx, [eax + 0x100]
push ecx
push eax
call fcn.00401410
movzx eax, ax
mov edx, 0x100
cmp ax, dx
ja 0x41ad9a
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi + 0x20]
push eax
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004205c0
jmp 0x41ada1
mov byte [ebp - 0x104], 0
mov edx, dword [ebp - 0x11c]
movzx ecx, byte [ebp - 0x104]
push edx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + ecx - 0x103], 0
call fcn.004017c0
mov ecx, dword [ebp - 0x108]
mov edx, dword [esi + 0x14]
push esi
push 0x41a910
push ecx
push 8
push 0x1194
push 0xc
push ebx
push 0
add edx, edi
push edx
call fcn.004021d0
mov eax, dword [ebp - 0x10c]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0
lea eax, [edx + edi + 0x1a4]
push eax
call fcn.00401b00
test eax, eax
je 0x41ac2b
lea ecx, [esi + 0xa1c]
push ecx
lea eax, [esi + 0x91c]
push eax
call fcn.00401410
movzx eax, ax
mov edx, 0x100
cmp ax, dx
ja 0x41ae49
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi + 0x24]
push eax
lea eax, [esi + 0x91c]
push eax
add edx, 4
push edx
call fcn.004205c0
jmp 0x41ae54
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi + 0x24]
mov byte [ecx + 4], 0
mov edx, dword [esi + 0x14]
lea eax, [esi + 0x778]
mov dword [edx + edi + 0x2c], eax
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0xb28]
mov dword [ecx + edi + 0x30], eax
mov eax, dword [ebp - 0x110]
inc eax
add edi, 0x3b0
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp + 0x30]
jb 0x41ad62
mov edx, dword [esi + 0x79c]
mov ebx, dword [ebp - 0x12c]
xor eax, eax
mov word [edx + 4], ax
mov ecx, dword [esi + 0x79c]
xor edx, edx
mov word [ecx + 6], dx
mov eax, dword [esi + 0x79c]
mov cx, word [ebp - 0x112]
mov word [eax + 8], cx
test ebx, ebx
je 0x41aefc
cmp byte [ebx], dl
je 0x41aefc
lea edx, [ebx + 0x100]
push edx
push ebx
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x41aef0
mov edx, eax
mov eax, dword [esi + 0x79c]
push edx
push ebx
add eax, 0xa
push eax
call fcn.004205c0
jmp 0x41af0d
mov ecx, dword [esi + 0x79c]
mov byte [ecx + 0xa], 0
jmp 0x41af0d
mov edx, dword [esi + 0x79c]
mov byte [esi + 0x7bc], 1
mov byte [edx + 0xa], 0
mov edi, dword [ebp - 0x128]
test edi, edi
jne 0x41af22
xor eax, eax
mov word [esi + 0xb38], ax
jmp 0x41af4e
mov eax, dword [esi + 0xb4c]
lea ecx, [eax + 4]
cmp edi, ecx
je 0x41af4e
mov dx, word [ebp + 0x28]
mov word [esi + 0xb38], dx
cmp dx, word [eax]
ja 0x41ac2b
movzx edx, dx
push edx
push edi
push ecx
call fcn.004205c0
mov ebx, dword [ebp - 0x118]
push str.mDNS_RegisterService
lea edi, [esi + 0x778]
push ebx
mov dword [esi + 0xb5c], edi
call fcn.00403f80
push edi
push ebx
call fcn.00412110
mov edi, eax
test edi, edi
je 0x41af88
push str.mDNS_RegisterService
push ebx
call fcn.004041f0
jmp 0x41b013
lea eax, [esi + 0xb28]
push eax
push ebx
call fcn.00412110
mov edi, eax
test edi, edi
jne 0x41afa7
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.00412110
mov edi, eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x41afe8
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], eax
mov edi, edi
test edi, edi
jne 0x41afd6
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 0x10c]
push eax
push ebx
call fcn.00412110
mov edi, eax
add dword [ebp - 0x10c], 0x3b0
dec dword [ebp - 0x118]
jne 0x41afc0
test edi, edi
jne 0x41affb
lea eax, [esi + 0x3c8]
push eax
push ebx
call fcn.00412110
mov edi, eax
push str.mDNS_RegisterService
push ebx
call fcn.004041f0
test edi, edi
je 0x41b013
push 0
push esi
push ebx
call fcn.00416070
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x3c