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

Disassembly:
mov eax, 0xa440
call fcn.00406570
mov eax, dword [esp + 0xa444]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
jg 0x404b46
mov dword [esp + 0xa454], 1
mov eax, dword [esp + 0xa454]
push esi
push 2
push 2
mov dword [0x409c2c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404d46
mov al, byte [esp + 0xa458]
mov dword [esp + 0x1c], esi
test al, al
je 0x404b92
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404a90
add esp, 4
test al, al
je 0x404b92
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
jmp 0x404b9e
mov dword [esp + 0x18], 0xfaffffef
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x20], esi
mov esi, 0x409c18
mov edx, dword [0x409c2c]
mov eax, dword [esi - 4]
mov ecx, dword [esi]
push edx
mov edx, dword [str.urn:schemas_upnp_org:]
push eax
push ecx
push edx
push str._s_s:_s:_d
push 0x7369e4
call ebp
push 0x7369e4
push 6
lea eax, [esp + 0x5470]
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 ebp
lea ecx, [esp + 0x5478]
push ecx
push 0x76c
push edi
push ebx
call fcn.00404000
add esp, 0x38
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 8
cmp esi, 0x409c30
jl 0x404bc5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x3e8
lea edx, [esp + 0x1c]
push 0
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x404c9a
test eax, eax
jne 0x404c9a
mov ecx, 0xb
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x24], 1
je 0x404c96
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x404c96
push 0
lea edx, [esp + 0x7c54]
push 0x2800
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 0x10], eax
jg 0x404cac
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 5
mov dword [esp + 0x20], eax
jl 0x404bc0
mov eax, dword [esp + 0x14]
push 0
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x404d46
mov byte [esp + eax + 0x7c50], 0
lea edx, [esp + 0x2c50]
lea eax, [esp + 0x7c50]
push edx
push eax
call fcn.00403f10
add esp, 8
test al, al
je 0x404d46
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
mov esi, 0x409c18
mov ecx, dword [esp + 0xa454]
mov edx, dword [esi - 4]
mov eax, dword [esi]
push ecx
mov ecx, dword [str.urn:schemas_upnp_org:]
push edx
push eax
push ecx
push str._s_s:_s:_d
push 0x7369e4
call ebp
lea edx, [esp + 0x2c68]
push 0x7369e4
push edx
call edi
add esp, 0x20
test eax, eax
jne 0x404d53
add esi, 8
cmp esi, 0x409c30
jl 0x404d03
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa440
ret
lea eax, [esp + 0x450]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x2c58]
push 0x409c9c
push edx
mov dword [esp + 0x20], 0
call fcn.00403d40
lea edi, [esp + 0x460]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404d46
mov ebp, dword [sym.imp.MSVCRT.dll__strupr]
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov dl, byte [esp + 0x458]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], ecx
push eax
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], 0
call ebp
add esp, 4
mov esi, str.LOCATION:
lea eax, [esp + 0x50]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x404df7
test cl, cl
je 0x404df3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x404df7
add eax, 2
add esi, 2
test cl, cl
jne 0x404dcf
xor eax, eax
jmp 0x404dfc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404e46
lea eax, [esp + 0x450]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x2c58]
push 0x409c9c
push edx
call fcn.00403d40
lea edi, [esp + 0x460]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x404d96
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa440
ret
lea edi, [esp + 0x450]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x459]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff7
lea edi, [esp + 0x450]
mov eax, ecx
lea edx, [esp + 0x5450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x450]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5450]
push ecx
call fcn.00403e60
lea edx, [esp + 0x5454]
push edx
call fcn.00403ec0
lea eax, [esp + 0x5458]
push eax
call fcn.00404740
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa440
ret