Function at 0x422e50
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0x11
push 2
xor ebx, ebx
lea eax, [ebp - 8]
push 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x422e90
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x422f00
call esi
cmp eax, ebx
jne 0x42305d
push edi
mov edi, 0x4c0
push edi
push ebx
mov dword [ebp - 4], ebx
call fcn.0043b13d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x422ef6
mov ebx, dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
mov edx, dword [ebp - 0x18]
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
push 0
push 0
push 0x4004747f
push edx
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x422f0d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x64
jge 0x42306c
add edi, 0x4c0
push edi
push esi
call fcn.0043b13d
mov esi, eax
add esp, 8
test esi, esi
jne 0x422eb0
mov esi, 0x2747
jmp 0x42303b
pop esi
mov eax, 0xffffe5d4
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x1c]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x42301e
mov ebx, 1
lea edi, [esi + 4]
cmp word [edi], 2
jne 0x42300e
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edi
call fcn.00421620
test eax, eax
jne 0x42300e
push 0x38
push 1
call fcn.0043b70f
mov esi, eax
add esp, 8
test esi, esi
je 0x423065
mov edx, dword [ebp - 0xc]
push 0x10
mov dword [edx], esi
mov dword [ebp - 0xc], esi
call fcn.0043a967
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x423065
push ebx
push 0x44f044
push eax
call fcn.0043b68b
mov eax, dword [edi - 4]
add esp, 0xc
mov dword [esi + 8], eax
cmp word [edi], 2
jne 0x42300b
push 0x10
push 1
call fcn.0043b70f
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x423065
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
push 1
mov dword [eax + 0xc], edx
call fcn.0043b70f
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x423065
mov ecx, 2
mov word [eax], cx
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [esi + 0x34], ecx
jmp 0x42300e
mov dword [esi + 0x34], ebx
inc ebx
lea edx, [ebx - 1]
add edi, 0x4c
cmp edx, dword [ebp - 4]
jl 0x422f33
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x42302f
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x42303b
call fcn.00421500
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x42304c
push eax
call fcn.0043a9fb
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x42305b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, 0x2747
jmp 0x42302f
mov esi, 0x2741
jmp 0x42303b