Function at 0x465b70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480aab
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4b3570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, byte [esi + 0x74]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00445d20
mov edi, eax
push str.UDP:_open_socket_for_host:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0
lea ebx, [esi + 0x30]
call fcn.004134d0
add esp, 0x10
mov ecx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x465bd7
mov ecx, dword [ebx]
push dword [ebx + 0x10]
push ecx
push eax
call fcn.00413dc0
lea ecx, [esi + 0x48]
push str.__port:
push eax
mov dword [ebp - 0xa4], ecx
call fcn.004134d0
add esp, 0x14
lea ecx, [esi + 0x48]
cmp dword [esi + 0x5c], 0x10
mov edx, eax
jb 0x465c06
mov ecx, dword [esi + 0x48]
push dword [esi + 0x58]
push ecx
push edx
call fcn.00413dc0
push str.__filter:
push eax
call fcn.004134d0
add esp, 0x14
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x465c28
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push eax
call fcn.00413dc0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x465c72
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x465c68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x465c68
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00471dc9
add esp, 8
cmp byte [esi + 0x74], 0
je 0x465d06
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
call fcn.00459d50
mov edi, eax
push str.__allowed:_
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 1
call fcn.004134d0
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x465cae
mov ecx, dword [edi]
push 0x483ea4
push dword [edi + 0x10]
push ecx
push eax
call fcn.00413dc0
add esp, 0xc
push eax
call fcn.004134d0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x465d06
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x465cfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x465cfc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00471dc9
add esp, 8
movzx eax, byte [esi + 0x79]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00445d20
mov edi, eax
push str.__JSON:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 2
call fcn.004134d0
add esp, 0x10
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x465d3a
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push eax
call fcn.00413dc0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x465d84
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x465d7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x465d7a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00471dc9
add esp, 8
cmp byte [esi + 0x78], 0
je 0x465d9d
push str.__broadcast:_true
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
mov eax, dword [esi + 0x60]
test eax, eax
jle 0x465dc0
push eax
push str.__reset:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4142c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [esi + 0x24], 0xffffffff
jne 0x465f15
cmp dword [esi + 0x5c], 0x10
lea ecx, [esi + 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
movlpd qword [ebp - 0xc0], xmm0
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 2
mov dword [ebp - 0xc4], 0x11
jb 0x465e22
mov ecx, dword [esi + 0x48]
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x465e2c
mov eax, dword [ebx]
lea edi, [esi + 0x28]
push edi
lea edx, [ebp - 0xd0]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x465e94
mov ecx, dword [edi]
test ecx, ecx
je 0x465e94
push dword [ecx + 0xc]
push dword [ecx + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x465f30
cmp dword [esi + 0x60], 0
jle 0x465e78
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret
push eax
call fcn.00467220
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004145d0
push ebx
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 3
push str.UDP_network_address_and_or_port_not_valid:
push eax
call fcn.00413890
push str._port
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.004137b0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00413750
push str._code:
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
call fcn.004137b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00413750
add esp, 0x3c
mov byte [ebp - 4], 8
jmp 0x465f71
push str.UDP:_internal_error__socket_already_defined.
lea ecx, [ebp - 0x1c]
call fcn.004164e0
push 0x48fc64
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push ebx
lea eax, [ebp - 0x40]
push str.cannot_create_socket_for_UDP
push eax
call fcn.00413890
push str._port
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 9
push eax
call fcn.004137b0
mov ecx, dword [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
call fcn.00413750
add esp, 0x24
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0xb0]
call fcn.00416490
push 0x48fc64
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3