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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov bx, word [ebp + 8]
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
push 0x11
mov dword [ebp - 0x48], eax
xor eax, eax
push 2
push ecx
mov word [ebp - 0x3a], bx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x420fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4210f5
test bx, bx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x420eae
push 4
lea edx, [ebp - 0x38]
push edx
push 4
push 0xffff
push esi
mov dword [ebp - 0x38], 1
call ebx
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 4
lea ecx, [ebp - 0x40]
push ecx
push 0x9800000c
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
movzx eax, word [edi]
cmp eax, 2
jne 0x420fb8
mov edi, dword [edi + 4]
xor eax, eax
push 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x3a]
push ecx
mov edx, 2
push esi
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_bind]
push 4
lea edx, [ebp - 0x38]
push edx
push 0x13
push 0
push esi
mov dword [ebp - 0x38], 1
call ebx
cmp word [ebp - 0x3a], 0
je 0x420f61
mov eax, dword [0x446458]
push 8
lea ecx, [ebp - 0x50]
push ecx
push 0xc
push 0
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edi
call ebx
push 4
lea edx, [ebp - 0x10]
push edx
push 9
push 0
push esi
mov dword [ebp - 0x10], edi
call ebx
push 4
lea eax, [ebp - 0x38]
push eax
push 0xb
push 0
push esi
mov dword [ebp - 0x38], 1
call ebx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 4
push 0
mov edi, 0xff
push esi
mov dword [ebp - 0x38], edi
call ebx
push 4
lea edx, [ebp - 0x38]
push edx
push 0xa
push 0
push esi
mov dword [ebp - 0x38], edi
call ebx
mov ecx, dword [ebp - 0x48]
pop edi
mov dword [ecx], esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0xffffe5d4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x17
jne 0x4210e2
mov dx, word [ebp - 0x3a]
xor eax, eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x32], dx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ecx, 0x17
mov word [ebp - 0x34], cx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], edx
push 0x1c
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x18]
push edx
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.WS2_32.dll_bind]
push 4
lea eax, [ebp - 0x38]
push eax
push 0x13
push 0x29
push esi
mov dword [ebp - 0x38], 1
call ebx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 0x1b
push 0x29
push esi
mov dword [ebp - 0x38], 1
call ebx
cmp word [ebp - 0x3a], 0
je 0x4210a3
mov ecx, dword [0x446474]
mov edx, dword [0x44646c]
mov eax, dword [0x446470]
push 0x14
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
push ecx
push 0xc
mov dword [ebp - 0x18], edx
mov edx, dword [0x446478]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x18]
push 0x29
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call ebx
mov edx, dword [edi + 0x18]
push 4
lea eax, [ebp - 0x38]
push eax
push 9
push 0x29
push esi
mov dword [ebp - 0x38], edx
call ebx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 0xb
push 0x29
push esi
mov dword [ebp - 0x38], 1
call ebx
push 4
lea edx, [ebp - 0x38]
push edx
push 4
push 0x29
mov edi, 0xff
push esi
mov dword [ebp - 0x38], edi
call ebx
push 4
lea eax, [ebp - 0x38]
push eax
push 0xa
push 0x29
push esi
mov dword [ebp - 0x38], edi
call ebx
mov ecx, dword [ebp - 0x48]
pop edi
mov dword [ecx], esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
mov edi, 0xffffe5b1
cmp esi, 0xffffffff
je 0x4210f3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8