Function at 0x45c1b0
Capabilities:
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x23c
push esi
push edi
push 0
push 2
mov edi, ecx
push 2
mov byte [eax], 0
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c1e0
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
mov edx, dword [edi + 0xf2c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea eax, [esp + 8]
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
push 0x8004667e
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x22], cx
mov word [esp + 0x20], 2
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x45c237
push esi
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45c262
push esi
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
lea edx, [esp + 0x14]
push 0x10
push edx
push esi
call sub.WSOCK32.dll_bind
test eax, eax
je 0x45c286
push esi
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
lea eax, [esp + 8]
push 4
push eax
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45c2b1
push esi
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
mov cx, word [edi + 0xf22]
mov dword [esp + 0x18], 0xffffffff
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x14]
push 0x10
mov word [esp + 0x1a], ax
push edx
push 0
lea eax, [esp + 0x30]
push 4
push eax
push esi
mov dword [esp + 0x3c], 0xf00d4a11
call sub.WSOCK32.dll_sendto
cmp eax, 1
jge 0x45c306
call sub.WSOCK32.dll_WSAGetLastError
push esi
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x23c
ret 4
mov ecx, dword [edi + 0xf24]
lea edx, [esp + 0x38]
push edx
push 0
lea eax, [esp + 0x148]
push 0
push eax
push 0
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
call sub.WSOCK32.dll_select
test eax, eax
jle 0x45c423
lea ecx, [esp + 0x140]
push ecx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x45c423
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
cmp eax, 0x100
mov dword [esp + 0x14], 0x10
push 0
jae 0x45c3ac
push eax
jmp 0x45c3b1
push 0x100
lea eax, [esp + 0x50]
push eax
push esi
call sub.WSOCK32.dll_recvfrom
cmp eax, 4
jl 0x45c423
mov al, byte [esp + 0x43]
test al, al
jne 0x45c423
mov edi, 0x4d43f4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x45c3f6
test cl, cl
je 0x45c3f2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x45c3f6
add eax, 2
add edi, 2
test cl, cl
jne 0x45c3d2
xor eax, eax
jmp 0x45c3fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45c423
mov eax, dword [esp + 0x2c]
push eax
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
je 0x45c423
mov ecx, dword [esp + 0x248]
push 0xff
push eax
push ecx
call fcn.004625f0
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
mov edx, dword [esp + 0x248]
xor eax, eax
pop edi
pop esi
cmp byte [edx], 0
setne al
add esp, 0x23c
ret 4