Function at 0x405550
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b3c4
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x2c], 0x80004005
mov eax, dword [ebp - 0x1b8]
cmp dword [eax + 0x3c], 0
jne 0x40559c
xor eax, eax
jmp 0x405966
mov ecx, dword [ebp + 8]
call fcn.00405e40
test eax, eax
jne 0x4055af
xor eax, eax
jmp 0x405966
mov ecx, dword [ebp - 0x1b8]
call fcn.00405990
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x4055cd
mov eax, 0x80004005
jmp 0x405966
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4055ed
mov dword [ebp - 0x2c], 0x80004005
jmp 0x405954
mov ecx, 2
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1b8]
movzx edx, word [ecx + 0x1c]
push edx
call sub.WS2_32.dll_htons
mov word [ebp - 0x22], ax
mov dword [ebp - 0x30], 0
jmp 0x405628
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
call fcn.00405e40
cmp dword [ebp - 0x30], eax
jae 0x40593e
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e60
push eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
cmp eax, 0x5aa
jbe 0x405672
mov dword [ebp - 0x1bc], 0x5aa
jmp 0x405681
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0xe8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xcc], esp
push 2
push 0x451d0c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0xc8]
call fcn.00402c20
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c8]
call fcn.00402cf0
mov dword [ebp - 0x1cc], eax
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1d0]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x17c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x160], esp
push 4
push 0x451d10
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x1dc], eax
lea ecx, [ebp - 0x15c]
call fcn.00402c20
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1e4]
call fcn.00402f10
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1ec]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x20
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1f4]
push ecx
lea edx, [ebp - 0x1b4]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1fc]
push ecx
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1b4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x17c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x15c]
call fcn.00404940
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc8]
call fcn.00404940
mov dword [ebp - 0x70], 0
jmp 0x405896
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
cmp dword [ebp - 0x70], eax
jae 0x4058c8
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::at_unsigned_int_]
movsx ebx, byte [eax]
xor ebx, 0xc
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
mov byte [eax], bl
jmp 0x40588d
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WS2_32.dll_sendto
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40591c
mov dword [ebp - 0x2c], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40593e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40561f
mov ecx, dword [ebp + 8]
call fcn.00405eb0
mov dword [ebp - 0x2c], 0
jmp 0x405954
cmp dword [ebp - 0x10], 0xffffffff
je 0x405963
mov edx, dword [ebp - 0x10]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret 4