Function at 0x47a3a0
Capabilities:
Create udp socket
Print debug messages
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration
Write file on windows

Disassembly:
sub esp, 0x6e0
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x6dc], eax
mov eax, dword [esp + 0x6e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
xor eax, eax
push 0x64
xor edi, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x84]
push edi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 1
call fcn.004e9730
add esp, 0xc
push 0x11
mov esi, 2
push esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
xor eax, eax
cmp ebp, edi
jl 0x47a742
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
push 0x76c
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x40], si
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x30], si
call dword [sym.imp.WS2_32.dll_htons]
push str.239.255.255.250
mov word [esp + 0x32], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jl 0x47a4a5
push 0x10
lea edx, [esp + 0x40]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x47a4ac
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x47a742
cmp dword [str.urn:schemas_upnp_org:device:InternetGatewayDevice:1], edi
mov dword [esp + 0x10], edi
je 0x47a4a5
mov edi, 0x558a98
mov eax, dword [edi]
push eax
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:__s_r_nMAN:__ssdp:discover__r_nMX:_3_r_n_r_n
lea eax, [esp + 0xf0]
push 0x600
push eax
call fcn.004e45ce
add esp, 0x10
push 0x10
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
lea edx, [esp + 0xf8]
push edx
add edi, 4
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
jl 0x47a49e
push 0x600
lea ecx, [esp + 0xec]
push 0
push ecx
call fcn.004e9730
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0xe8]
push 0x600
push edx
mov eax, ebp
xor ebx, ebx
call fcn.0047a280
add esp, 8
test eax, eax
jle 0x47a67a
mov edi, edi
add ebx, eax
lea eax, [esp + ebx + 0xe8]
push 0x600
push eax
mov eax, ebp
call fcn.0047a280
add esp, 8
test eax, eax
jg 0x47a550
test ebx, ebx
je 0x47a67a
lea ecx, [esp + 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetRouteIP.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47a5cd
push 0
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0xf4]
push eax
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xe8]
xor edi, edi
mov cl, byte [esi]
add esi, 1
add edi, 1
cmp cl, 0xd
jne 0x47a663
mov dl, byte [esi]
add esi, 1
add edi, 1
cmp dl, 0xa
jne 0x47a663
mov ecx, dword [0x53d5dc]
mov eax, dword [str.LOCATION:]
mov dx, word [0x53d5e0]
push 0xa
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov al, byte [0x53d5e2]
lea ecx, [esp + 0x5c]
push esi
push ecx
mov word [esp + 0x6c], dx
mov byte [esp + 0x6e], al
call fcn.0050ae70
add esp, 0xc
test eax, eax
jne 0x47a663
mov edx, dword [str.http:__]
mov eax, dword [0x53d5e8]
push 7
add esi, 0xa
lea ecx, [esp + 0x7c]
push esi
push ecx
add edi, 0xa
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call fcn.0050ae70
add esp, 0xc
test eax, eax
je 0x47a692
cmp edi, ebx
jne 0x47a5d6
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x20]
cmp dword [edi], 0
mov dword [esp + 0x10], 0
jne 0x47a4bd
xor eax, eax
jmp 0x47a742
mov al, byte [esi + 7]
add esi, 7
jmp 0x47a6a0
mov ecx, dword [esp + 0x10]
add esi, 1
mov byte [esp + ecx + 0x64], al
mov al, byte [esi]
add ecx, 1
cmp al, 0x3a
mov dword [esp + 0x10], ecx
jne 0x47a6a0
mov edx, dword [esp + 0x28]
mov eax, ecx
add eax, 1
push eax
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.004ef8a0
add esp, 0xc
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esi + 1]
add esi, 1
xor ecx, ecx
cmp al, 0x2f
je 0x47a6f7
add esi, 1
mov byte [esp + ecx + 0x4c], al
mov al, byte [esi]
add ecx, 1
cmp al, 0x2f
jne 0x47a6e7
mov edx, dword [esp + 0x14]
add ecx, 1
push ecx
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.004ef8a0
mov al, byte [esi]
add esp, 0xc
xor ecx, ecx
add esi, 1
mov byte [esp + ecx + 0x80], al
mov al, byte [esi]
add ecx, 1
cmp al, 0xd
jne 0x47a711
add ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.004ef8a0
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x6ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0b83
add esp, 0x6e0
ret