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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 0x38]
mov eax, ebx
and al, 2
neg al
push esi
sbb al, al
mov esi, edx
and al, 0x1e
add al, 2
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [esi + 0x14], eax
mov edi, ecx
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 8], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp eax, 0xfffffffe
jne 0x41b579
mov ecx, 2
jmp 0x41b595
cmp eax, 0xfffffffc
jne 0x41b585
mov ecx, 3
jmp 0x41b595
test eax, eax
jne 0x41b593
test bl, 1
je 0x41b593
lea ecx, [eax + 1]
jmp 0x41b595
xor ecx, ecx
push esi
push 0x41b3f0
push ecx
push 4
push 0x1194
push 0xc
mov dword [ebp + 0x38], ecx
xor edx, edx
push eax
lea ecx, [esi + 0x18]
call fcn.00402890
push esi
push 0x41b3f0
push dword [ebp + 0x38]
lea ecx, [esi + 0x384]
xor edx, edx
push 8
push 0x1194
push 0xc
push dword [ebp + 0x2c]
call fcn.00402890
push 0x4431b8
push dword [ebp + 0xc]
call fcn.004018b0
push esi
push 0x41b3f0
push dword [ebp + 0x38]
neg eax
lea ecx, [esi + 0x6f0]
push dword [ebp - 0xc]
sbb eax, eax
xor edx, edx
and eax, 0xffffff92
add eax, 0x78
push eax
push 0x21
push dword [ebp + 0x2c]
call fcn.00402890
push esi
push 0x41b3f0
push dword [ebp + 0x38]
lea ecx, [esi + 0xa5c]
xor edx, edx
push 2
push 0x1194
push 0x10
push dword [ebp + 0x2c]
call fcn.00402890
cmp word [ebp + 0x18], 0
jne 0x41b65d
and ebx, 1
lea edx, [esi + 0x6f0]
push ebx
push esi
push ecx
push dword [ebp + 0x2c]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041bf70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [esi + 0xa80]
mov cx, word [ebp + 0x20]
cmp word [eax], cx
jae 0x41b66f
mov word [eax], cx
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0x178]
push edi
push str._a_dns_sd
mov edx, str._t_services
call fcn.00402160
test eax, eax
jne 0x41b69a
mov eax, 0xfffefffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 0x4e4]
push edi
push ebx
xor edx, edx
call fcn.00402160
test eax, eax
je 0x41b68c
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x850]
push edi
push ebx
call fcn.00402160
test eax, eax
je 0x41b68c
mov edi, dword [esi + 0x710]
mov ebx, pe_nt_image_headers32
mov ecx, edi
lea edx, [edi + 0x100]
cmp edi, edx
jae 0x41b6f8
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b6f8
test al, al
je 0x41b8f5
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edx
jb 0x41b6e0
mov byte [esi + 0xbbc], 0
mov edi, dword [esi + 0x3a4]
mov ecx, edi
lea edx, [edi + 0x100]
cmp edi, edx
jae 0x41b729
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b729
test al, al
je 0x41b91a
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edx
jb 0x41b711
mov eax, dword [esi + 0x3c]
mov byte [eax + 4], 0
mov edi, dword [esi + 0x710]
mov ecx, edi
lea edx, [edi + 0x100]
cmp edi, edx
jae 0x41b75a
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b75a
test al, al
je 0x41b93f
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edx
jb 0x41b742
mov eax, dword [esi + 0x3a8]
mov byte [eax + 4], 0
cmp dword [ebp + 0x28], 0
lea ebx, [esi + 0x6f0]
lea eax, [esi + 0xa5c]
mov dword [esi + 0x3b0], ebx
mov dword [esi + 0x3b4], eax
mov dword [ebp + 8], 0
jbe 0x41b88c
xor ebx, ebx
nop
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ebx + 0x20]
mov ecx, edi
lea edx, [edi + 0x100]
cmp edi, edx
jae 0x41b7bb
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b7bb
test al, al
je 0x41b967
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edx
jb 0x41b7a3
xor al, al
mov byte [ebp - 0x10c], al
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
movzx eax, al
mov byte [ebp + eax - 0x10b], 0
call fcn.00401e50
mov ecx, dword [esi + 0x14]
xor edx, edx
push esi
push 0x41b3f0
push dword [ebp + 0x38]
add ecx, ebx
push 8
push 0x1194
push 0xc
push dword [ebp + 0x2c]
call fcn.00402890
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x10c]
push dword [ebp + 0x10]
add ecx, 0x160
xor edx, edx
push eax
add ecx, ebx
call fcn.00402160
test eax, eax
je 0x41b68c
lea edi, [esi + 0x850]
lea edx, [esi + 0x950]
mov ecx, edi
cmp edi, edx
jae 0x41b84b
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b84b
test al, al
je 0x41b997
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edx
jb 0x41b833
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx + 0x24]
mov byte [eax + 4], 0
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x6f0]
mov dword [eax + ebx + 0x2c], ecx
lea ecx, [esi + 0xa5c]
mov eax, dword [esi + 0x14]
mov dword [eax + ebx + 0x30], ecx
add ebx, 0x36c
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0x28]
jb 0x41b790
lea ebx, [esi + 0x6f0]
mov eax, dword [esi + 0x714]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov word [eax + 4], cx
mov eax, dword [esi + 0x714]
mov word [eax + 6], cx
mov ecx, dword [esi + 0x714]
mov ax, word [ebp + 0x18]
mov word [ecx + 8], ax
test edx, edx
je 0x41b9eb
cmp byte [edx], 0
je 0x41b9eb
lea edi, [edx + 0x100]
mov ecx, edx
cmp edx, edi
jae 0x41b9f2
mov al, byte [ecx]
cmp al, 0x3f
ja 0x41b9f2
test al, al
je 0x41b9c5
inc ecx
movzx eax, al
add ecx, eax
cmp ecx, edi
jb 0x41b8d4
jmp 0x41b9f2
sub ecx, edi
inc ecx
movzx eax, cx
cmp ax, bx
ja 0x41b6f8
push eax
lea eax, [esi + 0xbbc]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41b6ff
sub ecx, edi
inc ecx
movzx eax, cx
cmp ax, bx
ja 0x41b729
push eax
mov eax, dword [esi + 0x3c]
add eax, 4
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41b730
sub ecx, edi
inc ecx
movzx eax, cx
cmp ax, bx
ja 0x41b75a
push eax
mov eax, dword [esi + 0x3a8]
add eax, 4
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41b764
sub ecx, edi
inc ecx
movzx eax, cx
mov ecx, pe_nt_image_headers32
cmp ax, cx
ja 0x41b7bb
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [ebp - 0x10c]
add esp, 0xc
jmp 0x41b7c3
sub ecx, edi
inc ecx
movzx eax, cx
mov ecx, pe_nt_image_headers32
cmp ax, cx
ja 0x41b84b
push eax
mov eax, dword [esi + 0x14]
push edi
mov eax, dword [eax + ebx + 0x24]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41b856
sub ecx, edx
inc ecx
movzx eax, cx
mov ecx, pe_nt_image_headers32
cmp ax, cx
ja 0x41b9f2
push eax
mov eax, dword [esi + 0x714]
push edx
add eax, 0xa
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x41b9fc
mov byte [esi + 0x734], 1
mov eax, dword [esi + 0x714]
mov byte [eax + 0xa], 0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x41ba0e
xor eax, eax
mov word [esi + 0xa6c], ax
jmp 0x41ba3d
mov eax, dword [esi + 0xa80]
lea edx, [eax + 4]
cmp ecx, edx
je 0x41ba3d
mov di, word [ebp + 0x20]
mov word [esi + 0xa6c], di
cmp di, word [eax]
ja 0x41b68c
movzx eax, di
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0xa90], ebx
mov edx, str.mDNS_RegisterService
mov ebx, dword [ebp - 8]
mov ecx, ebx
call fcn.00405d90
lea edx, [esi + 0x6f0]
mov ecx, ebx
call fcn.00409b50
mov edi, eax
mov ecx, ebx
test edi, edi
je 0x41ba7c
mov edx, str.mDNS_RegisterService
call fcn.00406310
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
lea edx, [esi + 0xa5c]
call fcn.00409b50
mov edi, eax
test edi, edi
jne 0x41ba99
lea edx, [esi + 0x18]
mov ecx, ebx
call fcn.00409b50
mov edi, eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41bac9
xor ebx, ebx
test edi, edi
jne 0x41bab8
mov edx, dword [esi + 0x14]
mov ecx, dword [ebp - 8]
add edx, ebx
call fcn.00409b50
mov edi, eax
mov eax, dword [ebp + 0x28]
add ebx, 0x36c
sub eax, 1
mov dword [ebp + 0x28], eax
jne 0x41baa2
mov ebx, dword [ebp - 8]
test edi, edi
jne 0x41badc
lea edx, [esi + 0x384]
mov ecx, ebx
call fcn.00409b50
mov edi, eax
mov edx, str.mDNS_RegisterService
mov ecx, ebx
call fcn.00406310
test edi, edi
je 0x41baf7
push 0
mov edx, esi
mov ecx, ebx
call fcn.0041be50
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34