Function at 0x10013520
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100536de
mov eax, dword fs:[0]
push eax
sub esp, 0x7a8
mov eax, dword [0x100677a0]
xor eax, esp
mov dword [esp + 0x7a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0x7bc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x7d0]
mov edi, ecx
mov ecx, dword [edi + 0xc]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], esi
je 0x100138e1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, edi
call fcn.10013090
push 0x10006a11
push 0x100069fd
push 0xf
push 0x3c
lea eax, [esp + 0x414]
push eax
mov dword [edi + 8], ebp
call fcn.1003bc67
push 0x10006a11
push 0x100069fd
push 0xf
push 0x3c
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x7d8], ebp
call fcn.1003bc67
cmp dword [esp + 0x7cc], 1
mov bl, 1
mov byte [esp + 0x7c4], 1
mov byte [esp + 0x23], bl
jne 0x100136ab
mov eax, esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10013600
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.10002adf
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x7c8], 2
call fcn.100107d0
add esp, 4
cmp dword [esp + 0x60], 0x10
mov bl, al
mov byte [esp + 0x7c4], 1
jb 0x10013649
mov eax, dword [esp + 0x4c]
push eax
call fcn.10038f4b
add esp, 4
mov eax, esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10013660
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.10002adf
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x7c8], 3
call fcn.10010661
add esp, 4
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x23], al
mov byte [esp + 0x7c4], 1
jb 0x100136ab
mov edx, dword [esp + 0x4c]
push edx
call fcn.10038f4b
add esp, 4
lea ecx, [esp + 0x30]
call fcn.10006763
mov eax, dword [0x10066fc0]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x7c4], 4
je 0x100138e8
test al, 5
jne 0x100136dc
cmp eax, 7
jne 0x100138e8
movzx eax, byte [0x10068d30]
push eax
push 2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x410]
push edx
lea ecx, [esp + 0x40]
call fcn.10007044
cmp dword [esp + 0x1c], ebp
jne 0x1001376a
cmp dword [0x10068ca8], 4
jg 0x1001376a
push ebp
push ebp
push str.RapidDiscovery::search___No_IPv4_adapters_found.
push 0x121
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea eax, [esp + 0x30]
push 1
push eax
mov dword [esp + 0x38], ebp
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x10013743
push esi
call ebx
mov ecx, dword [0x10068cac]
cmp ecx, ebp
je 0x1001375d
mov eax, dword [0x10068cb0]
cmp eax, ebp
je 0x1001375d
push eax
push esi
call ecx
add esp, 8
cmp esi, ebp
je 0x1001376a
push esi
call fcn.10038f50
add esp, 4
cmp byte [esp + 0x23], 0
je 0x100138f1
mov eax, dword [0x10066fc0]
test al, 2
jne 0x10013787
cmp eax, 7
jne 0x100138f1
movzx ecx, byte [0x10068d30]
push ecx
push 0x17
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
call fcn.10007044
cmp dword [esp + 0x18], ebp
jne 0x10013815
cmp dword [0x10068ca8], 4
jg 0x10013815
push ebp
push ebp
push str.RapidDiscovery::search___No_IPv6_adapters_found.
push 0x129
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea ecx, [esp + 0x30]
push 1
push ecx
mov dword [esp + 0x38], ebp
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x100137ee
push esi
call ebx
mov ecx, dword [0x10068cac]
cmp ecx, ebp
je 0x10013808
mov eax, dword [0x10068cb0]
cmp eax, ebp
je 0x10013808
push eax
push esi
call ecx
add esp, 8
cmp esi, ebp
je 0x10013815
push esi
call fcn.10038f50
add esp, 4
cmp dword [esp + 0x1c], ebp
jne 0x100138fa
cmp dword [esp + 0x18], ebp
jne 0x100138fa
cmp dword [0x10068ca8], 4
jg 0x10013891
push ebp
push ebp
push str.RapidDiscovery::search___No_network_adapters_found.__abprting___
push 0x12d
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea edx, [esp + 0x30]
push 1
push edx
mov dword [esp + 0x38], ebp
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x1001386a
push esi
call ebx
mov ecx, dword [0x10068cac]
cmp ecx, ebp
je 0x10013884
mov eax, dword [0x10068cb0]
cmp eax, ebp
je 0x10013884
push eax
push esi
call ecx
add esp, 8
cmp esi, ebp
je 0x10013891
push esi
call fcn.10038f50
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c4], 1
call fcn.10006555
push 0x10006a11
push 0xf
push 0x3c
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x7d4], 0
call fcn.10039e38
push 0x10006a11
push 0xf
push 0x3c
lea ecx, [esp + 0x410]
push ecx
mov dword [esp + 0x7d4], 0xffffffff
call fcn.10039e38
xor al, al
jmp 0x100140be
mov dword [esp + 0x1c], ebp
jmp 0x10013702
mov dword [esp + 0x18], ebp
jmp 0x100137ad
push 0x10
call fcn.10038ffc
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x78c]
push str.urn:uuid:_s
push ecx
call fcn.1003ada5
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push esi
call fcn.10038f4b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*2]
lea eax, [eax + ecx*2 + 1]
xor ecx, ecx
mov edx, 4
xor esi, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10037406
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + eax*2]
lea ebx, [ebx + ecx*2 + 1]
add esp, 8
xor edx, edx
test ebx, ebx
jle 0x100139a2
mov eax, dword [edi + 0x10]
mov dword [eax + edx*4], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + eax*2]
add edx, 1
lea ebx, [ebx + ecx*2 + 1]
cmp edx, ebx
jl 0x10013986
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebp
mov byte [esp + 0x68], 0
test byte [0x10066fc0], 1
mov byte [esp + 0x7c4], 5
je 0x10013a54
mov ebp, dword [esp + 0x24]
lea edi, [esp + 0x408]
xor ebx, ebx
cmp esi, ecx
jge 0x10013a50
push 0x3c
call fcn.10038ffc
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x7c4], 6
je 0x10013a1d
cmp dword [edi + 0x14], 0x10
jb 0x10013a0b
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push ebx
push ebx
push edx
push ecx
mov ecx, eax
call fcn.100166d0
jmp 0x10013a1f
mov edx, dword [ebp + 0xc]
push ebx
push ebx
mov ecx, edi
push edx
push ecx
mov ecx, eax
call fcn.100166d0
jmp 0x10013a1f
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx + esi*4], ebx
lea eax, [edx + esi*4]
mov byte [esp + 0x7c4], 5
je 0x10013aa0
mov eax, dword [eax]
mov dword [eax + 0x14], esi
mov ecx, dword [esp + 0x1c]
add esi, 1
add edi, 0x3c
test byte [0x10066fc0], 1
jne 0x100139d5
mov eax, dword [esp + 0x18]
mov ebp, ecx
neg ebp
sbb ebp, ebp
and ebp, 0x190
xor ebx, ebx
test eax, eax
jle 0x10013bf4
lea edi, [esp + 0x84]
push 0x74
call fcn.10038ffc
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x7c4], 7
je 0x10013bb2
cmp dword [edi + 0x14], 0x10
jb 0x10013b8f
mov ecx, dword [edi]
jmp 0x10013b91
cmp dword [0x10068ca8], 4
jg 0x10013b0c
push ebx
push ebx
push str.RapidDiscovery::search___ERROR___Unable_to_instansiate_SLPDiscoveryAgent_s_.__aborting...
push 0x14f
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea eax, [esp + 0x30]
push 1
push eax
mov dword [esp + 0x38], ebx
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x10013ae5
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
cmp ecx, ebx
je 0x10013aff
mov eax, dword [0x10068cb0]
cmp eax, ebx
je 0x10013aff
push eax
push esi
call ecx
add esp, 8
cmp esi, ebx
je 0x10013b0c
push esi
call fcn.10038f50
add esp, 4
mov ecx, ebp
call fcn.10013090
cmp dword [esp + 0x7c], 0x10
jb 0x10013b27
mov ecx, dword [esp + 0x68]
push ecx
call fcn.10038f4b
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
mov byte [esp + 0x7c4], 1
call fcn.10006555
push 0x10006a11
push 0xf
push 0x3c
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x7d4], 0
call fcn.10039e38
push 0x10006a11
push 0xf
push 0x3c
lea eax, [esp + 0x410]
push eax
mov dword [esp + 0x7d4], 0xffffffff
call fcn.10039e38
xor al, al
jmp 0x100140be
mov ecx, edi
lea edx, [esp + 0x788]
push edx
mov edx, dword [edi + 0x34]
push ebp
push 1
push edx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0xc]
push edx
push ecx
mov ecx, eax
call fcn.10014484
jmp 0x10013bb4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
mov dword [edx + esi*4], eax
mov eax, dword [ecx + 0x10]
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
mov byte [esp + 0x7c4], 5
je 0x10013c60
mov eax, dword [eax]
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 1
add edi, 0x3c
add esi, 1
cmp ebx, eax
jl 0x10013a71
mov ecx, dword [esp + 0x1c]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xe74
add edi, 0x190
test byte [0x10066fc0], 4
mov dword [esp + 0x14], 0
je 0x10013d67
mov ebx, dword [esp + 0x24]
lea ebp, [esp + 0x408]
cmp dword [esp + 0x14], ecx
jge 0x10013d63
push 0x74
call fcn.10038ffc
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x7c4], 8
je 0x10013d26
cmp dword [ebp + 0x14], 0x10
jb 0x10013d09
mov ecx, dword [ebp]
jmp 0x10013d0b
cmp dword [0x10068ca8], 4
jg 0x10013cd2
push 0
push 0
push str.RapidDiscovery::search___ERROR___Unable_to_instansiate_new_LL_WSDDiscoveryAgent_s_.__aborting...
push 0x15f
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea ecx, [esp + 0x30]
push 1
push ecx
mov dword [esp + 0x38], 0
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x10013cab
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
test ecx, ecx
je 0x10013cc5
mov eax, dword [0x10068cb0]
test eax, eax
je 0x10013cc5
push eax
push esi
call ecx
add esp, 8
test esi, esi
je 0x10013cd2
push esi
call fcn.10038f50
add esp, 4
mov ecx, dword [esp + 0x24]
call fcn.10013090
cmp dword [esp + 0x7c], 0x10
jb 0x10013cef
mov edx, dword [esp + 0x68]
push edx
call fcn.10038f4b
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
jmp 0x10013891
mov ecx, ebp
lea edx, [esp + 0x788]
push edx
mov edx, dword [ebx + 0xc]
push edi
push 1
push 0xffffffffffffffff
push edx
push ecx
mov ecx, eax
call fcn.10014484
jmp 0x10013d28
xor eax, eax
mov ecx, dword [ebx + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 0x10]
cmp dword [edx + esi*4], 0
lea eax, [edx + esi*4]
mov byte [esp + 0x7c4], 5
je 0x10013da8
mov eax, dword [eax]
add dword [esp + 0x14], 1
mov dword [eax + 0x14], esi
mov ecx, dword [esp + 0x1c]
add ebp, 0x3c
add esi, 1
test byte [0x10066fc0], 4
jne 0x10013c26
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ebp, ecx
neg ebp
sbb ebp, ebp
and ebp, 0x1f4
add ebp, 0xe74
test eax, eax
mov dword [esp + 0x14], 0
jle 0x10013f36
lea edi, [esp + 0x80]
cmp dword [edi + 0x30], 0
push 0xffffffffffffffff
push 0
jne 0x10013ea1
push edi
jmp 0x10013ea5
cmp dword [0x10068ca8], 4
jg 0x10013e1a
push 0
push 0
push str.RapidDiscovery::search___ERROR___Unable_to_instansiate_IPv4_WSDDiscoveryAgent_s_.__aborting...
push 0x170
push str.._src_rapiddiscovery.cpp
push 4
push 2
lea eax, [esp + 0x30]
push 1
push eax
mov dword [esp + 0x38], 0
call fcn.1000655c
mov esi, dword [esp + 0x38]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x10013df3
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
test ecx, ecx
je 0x10013e0d
mov eax, dword [0x10068cb0]
test eax, eax
je 0x10013e0d
push eax
push esi
call ecx
add esp, 8
test esi, esi
je 0x10013e1a
push esi
call fcn.10038f50
add esp, 4
mov ecx, ebx
call fcn.10013090
cmp dword [esp + 0x7c], 0x10
jb 0x10013e35
mov ecx, dword [esp + 0x68]
push ecx
call fcn.10038f4b
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
mov byte [esp + 0x7c4], 1
call fcn.10006555
push 0x10006a11
push 0xf
push 0x3c
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x7d4], 0
call fcn.10039e38
push 0x10006a11
push 0xf
push 0x3c
lea eax, [esp + 0x410]
push eax
mov dword [esp + 0x7d4], 0xffffffff
call fcn.10039e38
xor al, al
jmp 0x100140be
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [esp + 0x70]
call fcn.1000267e
push 0x74
call fcn.10038ffc
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x7c4], 9
je 0x10013ef4
cmp dword [esp + 0x7c], 0x10
mov ecx, dword [esp + 0x68]
jae 0x10013ed7
lea ecx, [esp + 0x68]
lea edx, [esp + 0x788]
push edx
mov edx, dword [edi + 0x38]
push ebp
push 0
push edx
mov edx, dword [ebx + 0xc]
push edx
push ecx
mov ecx, eax
call fcn.10014484
jmp 0x10013ef6
xor eax, eax
mov ecx, dword [ebx + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 0x10]
cmp dword [edx + esi*4], 0
lea eax, [edx + esi*4]
mov byte [esp + 0x7c4], 5
je 0x10013f89
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0x18]
add ecx, 1
add edi, 0x3c
add esi, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x10013d94
mov ecx, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 0xf3c
add ecx, 0xed8
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x10014006
lea edi, [esp + 0xa0]
cmp dword [edi + 0x10], 0
je 0x10013ff8
push 0x74
call fcn.10038ffc
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x7c4], 0xa
je 0x10013fcc
cmp dword [edi + 0x14], 0x10
jb 0x10013fa9
mov ecx, dword [edi]
jmp 0x10013fab
cmp dword [0x10068ca8], 4
jg 0x10013e1a
push 0
push 0
push str.RapidDiscovery::search___ERROR___Unable_to_instansiate_old_syntax_WSDDiscoveryAgent_s_.__aborting...
push 0x185
jmp 0x10013dbf
mov ecx, edi
lea edx, [esp + 0x788]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [edi + 0x18]
push 1
push edx
mov edx, dword [ebx + 0xc]
push edx
push ecx
mov ecx, eax
call fcn.10014484
jmp 0x10013fce
xor eax, eax
mov ecx, dword [ebx + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 0x10]
cmp dword [edx + esi*4], 0
lea eax, [edx + esi*4]
mov byte [esp + 0x7c4], 5
je 0x100140e8
mov eax, dword [eax]
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0x18]
add esi, 1
add ebp, 1
add edi, 0x3c
cmp ebp, eax
jl 0x10013f5b
xor edi, edi
test esi, esi
jle 0x10014043
mov ebp, dword [esp + 0x7cc]
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + edi*4]
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ebx
push 0x10013330
push eax
push ebp
call edx
test al, al
je 0x10014108
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, esi
jl 0x10014013
cmp dword [esp + 0x7c], 0x10
jb 0x10014057
mov ecx, dword [esp + 0x68]
push ecx
call fcn.10038f4b
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
mov byte [esp + 0x7c4], 1
call fcn.10006555
push 0x10006a11
push 0xf
push 0x3c
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x7d4], 0
call fcn.10039e38
push 0x10006a11
push 0xf
push 0x3c
lea eax, [esp + 0x410]
push eax
mov dword [esp + 0x7d4], 0xffffffff
call fcn.10039e38
mov al, 1
mov ecx, dword [esp + 0x7bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7a4]
xor ecx, esp
call fcn.1003942d
add esp, 0x7b4
ret 8
cmp dword [0x10068ca8], 4
jg 0x10013e1a
push 0
push 0
push str.RapidDiscovery::search___ERROR___Unable_to_instansiate_new_SL_WSDDiscoveryAgent_s_.__aborting...
push 0x196
jmp 0x10013dbf
cmp dword [0x10068ca8], 4
jg 0x10013e1a
push 0
push 0
push str.RapidDiscovery::search___ERROR___Unable_to_start_DiscoveryAgent_s_.__aborting...
push 0x1a4
jmp 0x10013dbf