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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5b86
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, 0x19
mov esi, str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n_r_n
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
call fcn.005d95d0
push edi
push 0x64
lea ecx, [esp + 0x84]
push ecx
lea edx, [ebx + 0x70]
push edx
mov dword [esp + 0x2c], eax
call fcn.00565a90
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
test eax, fcn.00489120
je 0x56b541
lea esi, [esp + 0x60]
lea eax, [esp + 0x18]
call fcn.004893a0
mov edx, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c0], edi
call fcn.004b20d0
cmp dword [eax + 0x18], 0x10
jb 0x56b48e
mov eax, dword [eax + 4]
jmp 0x56b491
add eax, 4
push eax
push str.broadcast_failed:__s._Aborting.
mov esi, 0xc8
lea edi, [esp + 0xec]
call fcn.0049f990
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x50], esi
jb 0x56b4c3
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x1c0], 0xffffffff
cmp dword [esp + 0x78], esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x56b4f6
mov edx, dword [esp + 0x64]
push edx
call fcn.0059b877
add esp, 4
mov esi, dword [esp + 0x14]
cmp byte [esi + 4], 0
je 0x56b50d
mov eax, dword [esi]
push eax
call dword [0x5fd188]
mov byte [esi + 4], 0
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [ebx + 0x48]
call fcn.00530880
cmp byte [esi + 4], 0
jne 0x56b530
mov edx, dword [esi]
push edx
call dword [0x5fd18c]
mov byte [esi + 4], 1
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0056f580
jmp 0x56b677
add dword [ebx + 0x68], 1
mov eax, dword [ebx + 0x68]
push edi
add eax, eax
cdq
push 0xf4240
push edx
push eax
call fcn.005c0590
push edx
push eax
call fcn.004b2860
mov ecx, dword [ebx + 0xd0]
add esp, 8
lea esi, [esp + 0x54]
mov edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
call fcn.004b28c0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edi
adc eax, dword [esp + 0x28]
add ebx, 0xd8
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
push ebx
add eax, 0x14
lea ecx, [esp + 0x1c]
lea ebx, [esp + 0x28]
call fcn.004f1650
movzx edx, byte [0x65b389]
mov esi, dword [esp + 0x10]
push edx
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x28], esp
call fcn.00570f60
lea eax, [esp + 0x38]
push 0x56bc90
push eax
call fcn.00572ca0
add esp, 8
mov ebx, 1
mov dword [esp + 0x1c8], ebx
mov edi, dword [eax]
mov edx, dword [esi + 0xd0]
mov ecx, esp
mov dword [ecx], edi
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x18], esp
mov dword [ecx + 4], eax
je 0x56b601
mov ecx, ebx
lock xadd dword [eax], ecx
add edx, 0x14
lea ecx, [esi + 0xd8]
push edx
call fcn.00574c90
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x34]
test eax, eax
je 0x56b641
mov edi, eax
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x56b641
test edi, edi
je 0x56b641
push edi
call fcn.0056b1d0
push edi
call fcn.0059b877
add esp, 4
mov edi, dword [esp + 0x14]
cmp byte [edi + 4], 0
je 0x56b658
mov eax, dword [edi]
push eax
call dword [0x5fd188]
mov byte [edi + 4], 0
push str.broadcasting_search_for_rootdevice
lea ecx, [esi + 0x48]
call fcn.00530880
cmp byte [edi + 4], 0
jne 0x56b677
mov ecx, dword [edi]
push ecx
call dword [0x5fd18c]
mov byte [edi + 4], bl
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 4