Function at 0x416240
Capabilities:
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x4cfde9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x504530]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push ebx
or ebx, 0xffffffff
cmp eax, ebx
jne 0x41627f
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x416286
xor eax, eax
jmp 0x416543
mov ecx, dword [0x534114]
push ebp
push edi
push 1
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [0x534110]
call fcn.00464f60
xor ebp, ebp
test eax, eax
jne 0x4162ea
mov eax, dword [0x534114]
mov ecx, dword [0x53410c]
push 1
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00464f60
test eax, eax
jne 0x4162f6
mov ecx, dword [0x513e28]
mov edx, dword [0x513e2c]
mov eax, dword [0x513e30]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x513e34]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
cmp dword [0x534118], ebp
jne 0x4162f6
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 4]
push 0x10
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41636b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x14]
call fcn.00409e90
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x16]
mov edi, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
push edi
push 0x3ec8
push 0x534540
xor eax, eax
call fcn.00478c60
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41636b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x513e24]
mov ecx, dword [esi + 4]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edx, dword [0x53428c]
mov edi, edx
lea eax, [edi + edi*4]
lea ecx, [eax*4 + 4]
push ecx
mov dword [esi + 0x18], edx
call fcn.004be903
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov dword [esp + 0x30], 1
je 0x4163ca
push fcn.0040dfe0
push 0x4165d0
push edi
lea ebx, [eax + 4]
push 0x14
push ebx
mov dword [eax], edi
call fcn.004ad372
mov ecx, ebx
or ebx, 0xffffffff
jmp 0x4163cc
xor ecx, ecx
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebp
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
je 0x4163f9
add ecx, 4
cmp eax, 1
jne 0x4163ec
xor edx, edx
jmp 0x4163ef
lea edx, [ecx + 0x10]
mov dword [ecx], edx
dec eax
add ecx, 0x14
cmp eax, ebp
jne 0x4163e3
mov edx, dword [0x534290]
mov edi, edx
mov eax, edi
imul eax, eax, 0x3c
add eax, 4
push eax
mov dword [esi + 0x28], edx
call fcn.004be903
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov dword [esp + 0x30], 2
je 0x416444
push 0x415a10
push 0x4159f0
push edi
lea ebx, [eax + 4]
push 0x3c
push ebx
mov dword [eax], edi
call fcn.004ad372
mov ecx, ebx
or ebx, 0xffffffff
jmp 0x416446
xor ecx, ecx
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebp
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], ecx
je 0x416476
add ecx, 4
lea ebx, [ebx]
cmp eax, 1
jne 0x416469
xor edx, edx
jmp 0x41646c
lea edx, [ecx + 0x38]
mov dword [ecx], edx
dec eax
add ecx, 0x3c
cmp eax, ebp
jne 0x416460
mov ecx, dword [0x534294]
mov edi, ecx
lea edx, [edi + edi*8]
lea eax, [edx*8 + 4]
push eax
mov dword [esi + 0xbc], ecx
call fcn.004be903
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov dword [esp + 0x30], 3
je 0x4164c3
push 0x415cc0
push 0x415ca0
push edi
lea ebx, [eax + 4]
push 0x48
push ebx
mov dword [eax], edi
call fcn.004ad372
mov ecx, ebx
jmp 0x4164c5
xor ecx, ecx
mov eax, dword [esi + 0xbc]
cmp eax, ebp
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xc0], ecx
je 0x4164f6
add ecx, 4
mov edi, edi
cmp eax, 1
jne 0x4164e9
xor edx, edx
jmp 0x4164ec
lea edx, [ecx + 0x44]
mov dword [ecx], edx
dec eax
add ecx, 0x48
cmp eax, ebp
jne 0x4164e0
xor eax, eax
mov ecx, 0x20
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0xcc]
rep stosd dword es:[edi], eax
pop edi
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xc4], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x22c], ebp
mov dword [esi + 0x228], ebp
mov dword [esi + 0x310], ebp
mov dword [esi + 0x30c], ebp
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop ebx
call fcn.004ae38e
add esp, 0x28
ret