Function at 0x416707
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa440
call fcn.00421ba0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jg 0x416723
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
push esi
push 2
push 2
mov dword [0x448aa4], eax
call dword [0x458b74]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x416745
xor al, al
jmp 0x4168f0
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x416764
lea eax, [ebp - 4]
push eax
call fcn.0041668b
test al, al
pop ecx
je 0x416764
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x41676b
mov dword [ebp - 0x10], 0xfaffffef
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], esi
mov esi, 0x459c68
push edi
mov edi, 0x448a90
push dword [0x448aa4]
push dword [edi - 4]
push dword [edi]
push dword [0x448a88]
push str._s_s:_s:_d
push esi
call ebx
push esi
push 6
lea eax, [ebp - 0x5440]
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nMAN:__ssdp:discover__r_nMX:__d_r_nST:__s_r_n_r_n
push eax
call ebx
lea eax, [ebp - 0x5440]
push eax
push 0x76c
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00415f11
add esp, 0x38
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 8
cmp edi, 0x448aa8
jl 0x416798
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
push edi
push 0x3e8
push edi
lea eax, [ebp - 0xc]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x41685c
cmp eax, edi
jne 0x41685c
push 0x2c
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00421a10
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x40], 1
je 0x41685c
cmp dword [ebp - 0x3c], edi
jne 0x41685c
push edi
push 0x27d8
lea eax, [ebp - 0xa440]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x41686b
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x416793
xor edi, edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push dword [ebp - 8]
call dword [0x458c90]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x4168ec
mov byte [ebp + eax - 0xa440], 0
lea eax, [ebp - 0x2c40]
push eax
lea eax, [ebp - 0xa440]
push eax
call fcn.00415e42
test al, al
pop ecx
pop ecx
je 0x4168ec
mov edi, 0x448a90
push dword [ebp + 8]
push dword [edi - 4]
push dword [edi]
push dword [0x448a88]
push str._s_s:_s:_d
push esi
call ebx
lea eax, [ebp - 0x2c40]
push esi
push eax
call fcn.00421d10
add esp, 0x20
test eax, eax
jne 0x4168f3
add edi, 8
cmp edi, 0x448aa8
jl 0x4168b7
xor al, al
pop edi
pop ebx
pop esi
leave
ret
and dword [ebp + 8], 0
lea eax, [ebp - 0x7c40]
push eax
lea eax, [ebp + 8]
push eax
mov edi, 0x42a4d0
lea eax, [ebp - 0x2c40]
push edi
push eax
call fcn.00415d1b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x416975
push 9
lea eax, [ebp - 0x7c40]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004216d0
lea eax, [ebp - 0x440]
push eax
mov byte [ebp - 0x437], 0
call fcn.004227bb
add esp, 0x10
push str.LOCATION:
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [ebp - 0x7c40]
push eax
je 0x41698a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c40]
push edi
push eax
call fcn.00415d1b
lea eax, [ebp - 0x7c40]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x41691c
jmp 0x4168ec
call esi
sub eax, 8
push eax
lea eax, [ebp - 0x7c37]
push eax
lea eax, [ebp - 0x7c40]
push eax
call fcn.004216d0
add esp, 0xc
lea eax, [ebp - 0x7c40]
push eax
lea eax, [ebp - 0x5440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x5440]
push eax
call fcn.00415dcb
lea eax, [ebp - 0x5440]
push eax
call fcn.00415e0d
lea eax, [ebp - 0x5440]
push eax
call fcn.00416420
add esp, 0xc
jmp 0x4168ee