Function at 0x47ad40
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 [0x617560]
xor eax, esp
mov dword [esp + 0x6dc], eax
mov eax, dword [esp + 0x6e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 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 + 0x30], edx
mov dword [esp + 0x28], 1
call fcn.004eaae0
add esp, 0xc
push 0x11
mov esi, 2
push esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
xor eax, eax
cmp ebx, edi
jl 0x47b121
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 ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jl 0x47ae45
push 0x10
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x47ae4c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x47b121
cmp dword [str.urn:schemas_upnp_org:device:InternetGatewayDevice:1], edi
mov dword [esp + 0x10], edi
je 0x47ae45
mov edi, 0x61a2f8
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.004e7140
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 ebx
mov dword [esp + 0x40], 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 0x47ae3e
push 0x600
lea ecx, [esp + 0xec]
push 0
push ecx
call fcn.004eaae0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0xe8]
push 0x600
push edx
mov eax, ebx
xor ebp, ebp
call fcn.0047ac20
add esp, 8
test eax, eax
jle 0x47b01a
mov edi, edi
add ebp, eax
lea eax, [esp + ebp + 0xe8]
push 0x600
push eax
mov eax, ebx
call fcn.0047ac20
add esp, 8
test eax, eax
jg 0x47aef0
test ebp, ebp
je 0x47b01a
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 0x47af6d
push 0
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0xf4]
push eax
push esi
mov dword [esp + 0x34], 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 0x47b003
mov dl, byte [esi]
add esi, 1
add edi, 1
cmp dl, 0xa
jne 0x47b003
mov ecx, dword [0x5fd508]
mov eax, dword [str.LOCATION:]
mov dx, word [0x5fd50c]
push 0xa
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov al, byte [0x5fd50e]
lea ecx, [esp + 0x5c]
push esi
push ecx
mov word [esp + 0x6c], dx
mov byte [esp + 0x6e], al
call fcn.005b5f9a
add esp, 0xc
test eax, eax
jne 0x47b003
mov edx, dword [str.http:__]
mov eax, dword [0x5fd514]
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.005b5f9a
add esp, 0xc
test eax, eax
je 0x47b032
cmp edi, ebp
jne 0x47af76
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x28]
cmp dword [edi], 0
mov dword [esp + 0x10], 0
jne 0x47ae5d
xor eax, eax
jmp 0x47b121
mov al, byte [esi + 7]
add esi, 7
jmp 0x47b040
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
je 0x47b05c
cmp al, 0x2f
jne 0x47b040
add ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.004f0e70
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
cmp byte [esi], 0x2f
jne 0x47b0b4
push 0x76c
push 0x5f5054
lea edx, [esp + 0x54]
call fcn.0047bb10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov ecx, eax
add esp, 8
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x47b0a6
jmp 0x47b0e6
mov al, byte [esi + 1]
add esi, 1
cmp al, 0x2f
je 0x47b0d0
mov edi, edi
add esi, 1
mov byte [esp + ecx + 0x4c], al
mov al, byte [esi]
add ecx, 1
cmp al, 0x2f
jne 0x47b0c0
mov eax, dword [esp + 0x14]
add ecx, 1
push ecx
lea edx, [esp + 0x50]
push edx
push eax
call fcn.004f0e70
add esp, 0xc
mov al, byte [esi]
xor ecx, ecx
lea ebx, [ebx]
add esi, 1
mov byte [esp + ecx + 0x80], al
mov al, byte [esi]
add ecx, 1
cmp al, 0xd
jne 0x47b0f0
mov edx, dword [esp + 0x24]
add ecx, 1
push ecx
lea ecx, [esp + 0x84]
push ecx
push edx
call fcn.004f0e70
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x6ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3dc3
add esp, 0x6e0
ret