Function at 0x4057a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor eax, eax
mov ax, word [0x447b8f]
xor ecx, ecx
mov cx, word [0x447b83]
lea edx, [ecx + eax*2 + 1]
xor eax, eax
mov ax, word [0x447b87]
add edx, eax
mov word [ebp - 4], dx
jmp 0x4057d8
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp - 4]
and edx, 0xffff
xor eax, eax
mov ax, word [0x447b8f]
xor ecx, ecx
mov cx, word [0x447b83]
lea eax, [ecx + eax*2 + 1]
xor ecx, ecx
mov cx, word [0x447b87]
add eax, ecx
xor ecx, ecx
mov cx, word [0x447b85]
add eax, ecx
cmp edx, eax
jge 0x4058bd
mov edx, dword [ebp - 4]
and edx, 0xffff
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp edx, eax
jne 0x40582b
jmp 0x4057cc
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
xor eax, eax
mov ax, word [edx + ecx + 0x13]
mov ecx, dword [ebp - 4]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
xor esi, esi
mov si, word [edx + ecx + 0x13]
cmp eax, esi
jne 0x4058b8
mov eax, dword [ebp - 4]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
cmp dword [ecx + eax + 2], 0xffffffff
je 0x4058b8
mov edx, dword [ebp - 4]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov esi, dword [0x4477e4]
mov edx, dword [esi + edx + 2]
mov dword [ecx + eax + 2], edx
jmp 0x405b89
jmp 0x4057cc
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
cmp dword [ecx + eax + 2], 0xffffffff
jne 0x405b89
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov ecx, dword [0x4477e4]
mov dword [ecx + edx + 2], eax
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
cmp dword [eax + edx + 2], 0xffffffff
jne 0x40593e
push 0x42b7f4
push 0x9b
push 0x42b818
mov ecx, dword [0x437d14]
push ecx
call fcn.0040c291
add esp, 0x10
jmp 0x405b89
push 0x7d00
push 0x7d00
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
mov ecx, dword [eax + edx + 2]
push ecx
call fcn.0041755d
add esp, 0xc
test eax, eax
jne 0x4059d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b834
push 0xa1
push 0x42b864
mov edx, dword [0x437d14]
push edx
call fcn.0040c291
add esp, 0x14
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov edx, dword [ecx + eax + 2]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov dword [ecx + eax + 2], 0xffffffff
jmp 0x405b89
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0041b260
add esp, 0xc
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov dx, word [ecx + eax + 0x13]
mov word [ebp - 0x12], dx
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov eax, dword [edx + ecx + 2]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x405a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.client_UDP_bind___error__d__
push 0xae
push 0x42b8a0
mov ecx, dword [0x437d14]
push ecx
call fcn.0040c291
add esp, 0x14
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
mov ecx, dword [eax + edx + 2]
push ecx
call sub.WSOCK32.dll_closesocket
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
mov dword [eax + edx + 2], 0xffffffff
jmp 0x405b89
push 0x447b60
call fcn.00415bf6
add esp, 4
push 0x447920
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov eax, dword [edx + ecx + 2]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x405b11
cmp dword [0x447920], 0x40
jae 0x405b0b
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x447920]
mov eax, dword [0x4477e4]
mov ecx, dword [eax + ecx + 2]
mov dword [edx*4 + 0x447924], ecx
mov edx, dword [0x447920]
add edx, 1
mov dword [0x447920], edx
xor eax, eax
test eax, eax
jne 0x405ace
push 0x447a40
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov eax, dword [edx + ecx + 2]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x405b7c
cmp dword [0x447a40], 0x40
jae 0x405b76
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x447a40]
mov eax, dword [0x4477e4]
mov ecx, dword [eax + ecx + 2]
mov dword [edx*4 + 0x447a44], ecx
mov edx, dword [0x447a40]
add edx, 1
mov dword [0x447a40], edx
xor eax, eax
test eax, eax
jne 0x405b39
push 0x447b60
call fcn.00415c05
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret