Function at 0x4345d0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, 0x58ae30
mov ebx, edx
call fcn.004330e0
test eax, eax
je 0x4346f6
mov dword [esp + 0x24], eax
movzx eax, si
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov word [esp + 0x34], 2
mov dword [esp + 0x18], esi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x36], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00434520
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x434713
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [eax + 0xc], esi
mov dword [esp + 0x30], 1
lea eax, [esp + 0x30]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x434736
lea eax, [esp + 0x34]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x43481c
cmp ebx, 1
jne 0x4346aa
push 0x7fffffff
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x434af2
mov edx, dword [esp + 0x24]
mov edi, 0xffffffff
cmp edx, 0x5d9150
jae 0x434a23
mov esi, dword [ebp + 8]
cmp edx, 0x5c1150
jb 0x434a26
mov eax, dword [edx + 4]
test eax, eax
je 0x434a26
mov eax, 0x5c1150
mov ecx, edx
sub ecx, eax
sar ecx, 4
imul edi, ecx, 0xaaaaaaab
add edi, 0x800
jmp 0x434a26
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
mov ecx, edi
push eax
call fcn.00555b20
jmp 0x434977
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0xc], 1
je 0x434760
mov eax, dword [esp + 0x14]
jmp 0x434764
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0xc], 1
je 0x434874
mov eax, dword [esp + 0x14]
jmp 0x434878
lea eax, [esp + 0xd]
mov esi, esp
push eax
push str.cannot_create_socket:__s
push esi
call fcn.004deac0
add esp, 0xc
test byte [edi], 1
jne 0x434781
mov word [edi], 0
jmp 0x4347a4
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4347a4
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0xc], 1
je 0x4347de
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
jns 0x434900
call fcn.004ddb30
cmp eax, 1
jg 0x434900
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x346
jmp 0x434c1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x36]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0xc], 1
je 0x434986
mov eax, dword [esp + 0x14]
jmp 0x43498a
lea eax, [esp + 0xd]
mov esi, esp
push eax
push str.cannot_set_socket_option_SO_EXCLUSIVEADDRUSE:__s
push esi
call fcn.004deac0
add esp, 0xc
test byte [edi], 1
jne 0x434895
mov word [edi], 0
jmp 0x4348b8
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4348b8
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0xc], 1
je 0x4348f2
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x434bf2
mov ecx, ebx
call fcn.00433dc0
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [0x5c1138]
mov edi, dword [eax]
mov ecx, esi
call fcn.004fb4c0
mov edx, dword [esp + 0x24]
mov eax, 0x5c1150
mov ecx, edx
sub ecx, eax
sar ecx, 4
imul eax, ecx, 0xaaaaaaab
cmp dword [0x5c114c], eax
jle 0x43493f
mov dword [0x5c114c], eax
cmp dword [edx + 4], 0
je 0x434968
mov eax, dword [edx]
push edx
mov ebx, edx
call dword [eax + 4]
add esp, 4
mov byte [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov ecx, esi
call fcn.004fb560
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xd]
mov ecx, esp
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push str.cannot_bind_to__s:_u:__s
push ecx
call fcn.004deac0
add esp, 0x14
test byte [edi], 1
jne 0x4349af
mov word [edi], 0
jmp 0x4349d2
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4349d2
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0xc], 1
je 0x434a0c
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x434c3c
mov ecx, dword [esp + 0x1c]
jmp 0x434902
mov esi, dword [ebp + 8]
add edx, 0x10
cmp esi, 0x7f000001
mov eax, 0x58b778
mov ecx, 0x58b77b
cmove ecx, eax
mov esi, edx
cmp ebx, 1
mov eax, str.udp:
mov edx, 0x58aedb
cmovne edx, eax
push dword [esp + 0x18]
push edx
push ecx
push edi
push str._d__s_server:_s_d_
push 0x20
push esi
call fcn.00433200
add esp, 0x1c
mov eax, dword [0x5bc570]
cmp byte [eax], 0
jns 0x43497c
call fcn.004ddb30
cmp eax, 1
jg 0x43497c
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0xc]
mov ecx, esi
mov dword [esp + 0x24], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x372
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
mov esi, eax
cmp ebx, 1
mov eax, 0x58aebb
mov ecx, 0x58aebf
cmovne ecx, eax
mov eax, esp
push edi
push ecx
push dword [esp + 0x20]
push str.port__d_type__s___fd__d
push eax
call fcn.004deac0
add esp, 0x14
movzx eax, byte [esp]
test al, 1
je 0x434cff
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x434d05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0xc], 1
je 0x434b15
mov eax, dword [esp + 0x14]
jmp 0x434b19
lea eax, [esp + 0xd]
mov esi, esp
push eax
push str.cannot_listen_on_socket:__s
push esi
call fcn.004deac0
add esp, 0xc
test byte [edi], 1
jne 0x434b36
mov word [edi], 0
jmp 0x434b59
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x434b59
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0xc], 1
je 0x434b93
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
jns 0x434900
call fcn.004ddb30
cmp eax, 1
jg 0x434900
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x369
push 0x58acc4
call fcn.004ddb50
lea ecx, [esp + 0xc]
call fcn.004ddb40
test byte [edi], 1
mov dword [esp + 0x20], eax
jne 0x434da6
inc edi
jmp 0x434da9
call fcn.004ddb30
cmp eax, 1
jg 0x434900
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x354
push 0x58acc4
call fcn.004ddb50
lea ecx, [esp + 0xc]
call fcn.004ddb40
test byte [edi], 1
mov dword [esp + 0x1c], eax
jne 0x434c9b
inc edi
jmp 0x434c9e
call fcn.004ddb30
cmp eax, 1
jg 0x434a1a
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0xc]
mov ecx, esi
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x35f
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
mov esi, eax
cmp ebx, 1
mov ecx, 0x58aebf
mov eax, 0x58aebb
cmove eax, ecx
test byte [edi], 1
jne 0x434d3c
inc edi
jmp 0x434d3f
mov edi, dword [edi + 8]
push edi
push 0x58ae7d
push esi
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x434cbf
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x434cc5
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x24]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434ce5
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x434900
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push esi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434d22
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0x43497c
mov edi, dword [edi + 8]
push edi
push dword [esp + 0x1c]
push eax
push str.could_not_bind_to__s:_d:__s
lea eax, [esp + 0x10]
push eax
call fcn.004deac0
add esp, 0x14
movzx eax, byte [esp]
test al, 1
je 0x434d69
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x434d6f
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push esi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434d8c
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
jmp 0x434a1a
mov edi, dword [edi + 8]
push edi
push dword [esp + 0x1c]
push 0x58aebf
push str.could_not_listen_on__s:_d:__s
push esi
call fcn.004deac0
add esp, 0x14
movzx eax, byte [esp]
test al, 1
je 0x434dd3
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x434dd9
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x28]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434df9
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x1c]
jmp 0x434cf8