Function at 0x458580
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a236
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x5c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18c], ecx
mov eax, dword [ebp - 0x18c]
cmp dword [eax + 0x40], 1
je 0x45860d
push str.Socket::sendTo:_non_UDP_socket_can_not_sendTo
lea ecx, [ebp - 0xc8]
call fcn.0040cd80
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xc8]
push ecx
push 0xe
lea ecx, [ebp - 0xac]
call fcn.004190d0
push 0x48231c
lea edx, [ebp - 0xac]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.0040dc10
push 0x20
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00431a40
add esp, 0xc
mov dword [ebp - 0x50], 2
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0x190], edx
cmp dword [ebp - 0x190], 0
je 0x458647
cmp dword [ebp - 0x190], 1
je 0x458650
jmp 0x458659
mov dword [ebp - 0x54], 2
jmp 0x4586a9
mov dword [ebp - 0x54], 0x17
jmp 0x4586a9
push str.Socket::sendTo:_bad_ip_version.
lea ecx, [ebp - 0x108]
call fcn.0040cd80
mov dword [ebp - 4], 1
push 0
lea eax, [ebp - 0x108]
push eax
push 1
lea ecx, [ebp - 0xec]
call fcn.004190d0
push 0x48231c
lea ecx, [ebp - 0xec]
push ecx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0040dc10
mov edx, dword [ebp + 0x14]
push edx
push 0x47bdc0
push 0xa
lea eax, [ebp - 0x68]
push eax
call fcn.0043734e
add esp, 0x10
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0040c580
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x34], eax
push 0x458360
lea ecx, [ebp - 0x30]
call fcn.0041c800
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0041c910
cmp dword [ebp - 0x34], 0
je 0x458775
push str.Socket::sendTo:_error_setting_addrInfo:
lea ecx, [ebp - 0x84]
call fcn.0040cd80
mov byte [ebp - 4], 3
push str.Socket::sendTo:_error_setting_addr_info
lea ecx, [ebp - 0x148]
call fcn.0040cd80
mov byte [ebp - 4], 4
call fcn.00458240
push eax
lea edx, [ebp - 0x148]
push edx
push 3
lea ecx, [ebp - 0x12c]
call fcn.004190d0
push 0x48231c
lea eax, [ebp - 0x12c]
push eax
call fcn.00439440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
call fcn.0040dc10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.0040dc10
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jae 0x458824
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
push 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0xffffffff
jne 0x458813
push str.Socket::sendTo:_could_not_send_the_data
lea ecx, [ebp - 0x188]
call fcn.0040cd80
mov byte [ebp - 4], 5
call fcn.00458240
push eax
lea ecx, [ebp - 0x188]
push ecx
push 8
lea ecx, [ebp - 0x16c]
call fcn.004190d0
push 0x48231c
lea edx, [ebp - 0x16c]
push edx
call fcn.00439440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.0040dc10
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x38], eax
jmp 0x45877c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041c830
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0x10