Function at 0x431d00
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469ce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x101c
call fcn.00446b30
mov eax, dword [0x487cdc]
push ebx
mov dword [esp + 0x101c], eax
mov eax, dword [0x48954c]
test eax, eax
push esi
push edi
ja 0x432048
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x432048
xor eax, eax
mov byte [esp + 0x820], 0
mov ecx, 0x1ff
lea edi, [esp + 0x821]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x1ff
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push 0x800
lea ecx, [esp + 0x30]
push ecx
push 0x800
lea edx, [esp + 0x838]
push edx
push 0x4004747f
push esi
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x431dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x432048
mov ecx, dword [esp + 0x1c]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
mov dword [0x48954c], ecx
call fcn.0045ce70
mov edx, eax
mov eax, dword [0x48954c]
lea ecx, [eax + eax*4]
shl ecx, 2
mov ebx, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x48954c]
add esp, 4
test eax, eax
mov dword [0x489550], edx
jbe 0x431f69
xor esi, esi
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], eax
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [ebx]
push edx
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [0x489550]
mov dword [esi + ecx], eax
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431e57
mov edx, dword [0x489550]
sub eax, ecx
mov dword [esi + edx + 8], eax
mov eax, dword [0x489550]
mov ecx, dword [esi + eax + 8]
add ecx, 2
push ecx
call fcn.0045ce70
mov edx, dword [0x489550]
mov dword [esi + edx + 4], eax
mov ecx, dword [0x489550]
mov ecx, dword [esi + ecx + 4]
add esp, 4
mov eax, edi
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x431e95
cmp word [ebp + 8], 0
je 0x431f0c
push 2
push 4
mov edx, ebx
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov edi, eax
test edi, edi
je 0x431f0c
mov eax, dword [edi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431ec0
mov ecx, dword [0x489550]
sub eax, edx
mov dword [esi + ecx + 0x10], eax
mov edx, dword [0x489550]
mov eax, dword [esi + edx + 0x10]
add eax, 2
push eax
call fcn.0045ce70
mov ecx, dword [0x489550]
mov dword [esi + ecx + 0xc], eax
mov edx, dword [0x489550]
mov eax, dword [edi]
mov ecx, dword [esi + edx + 0xc]
add esp, 4
nop
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x431f00
jmp 0x431f50
mov eax, dword [0x489550]
mov ecx, dword [esi + eax + 8]
mov dword [esi + eax + 0x10], ecx
mov edx, dword [0x489550]
mov eax, dword [esi + edx + 0x10]
add eax, 2
push eax
call fcn.0045ce70
mov ecx, dword [0x489550]
mov dword [esi + ecx + 0xc], eax
mov eax, dword [0x489550]
mov ecx, dword [esi + eax + 4]
mov edx, dword [esi + eax + 0xc]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x431f46
mov eax, dword [esp + 0xc]
add ebx, 0x4c
add esi, 0x14
dec eax
mov dword [esp + 0xc], eax
jne 0x431e35
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x48954c]
mov ebx, 1
cmp eax, ebx
jbe 0x432048
mov eax, dword [0x489550]
mov esi, dword [eax + 4]
mov edi, str.127.0.0.1
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x432048
mov edx, dword [eax]
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [0x489550]
mov dword [eax], ecx
mov eax, dword [0x489550]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
add eax, 4
push eax
mov dword [esp + 0x1038], 0
call fcn.00431860
mov ecx, dword [0x489550]
lea eax, [esp + 0xc]
push eax
add ecx, 4
call fcn.00431860
mov eax, dword [0x489550]
mov edx, dword [eax + 0x20]
lea ecx, [eax + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
add eax, 0xc
push eax
mov byte [esp + 0x1038], bl
call fcn.00431860
mov ecx, dword [0x489550]
lea eax, [esp + 0x14]
push eax
add ecx, 0xc
call fcn.00431860
lea ecx, [esp + 0x14]
mov byte [esp + 0x1034], 0
call fcn.00402aa0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1034], 0xffffffff
call fcn.00402aa0
mov ecx, dword [esp + 0x102c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1024]
call fcn.00446654
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret