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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b84fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x30], 0
call fcn.0040a220
push 0
push 2
push 2
mov dword [esp + 0xc4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43f8c0
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x34]
call fcn.004057e0
push eax
mov edx, str.create_udp_socket_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x18]
call fcn.00405a70
mov esi, eax
add esp, 4
lea eax, [esp + 0x50]
cmp eax, esi
je 0x43f82d
cmp dword [esp + 0x64], 0x10
jb 0x43f80e
push dword [esp + 0x50]
call fcn.0044f9f1
add esp, 4
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.004045c0
cmp dword [esp + 0x28], 0x10
jb 0x43f840
push dword [esp + 0x14]
call fcn.0044f9f1
add esp, 4
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x43f870
push dword [esp + 0x34]
call fcn.0044f9f1
add esp, 4
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00413370
cmp dword [esp + 0x7c], 0x10
jb 0x43f88f
push dword [esp + 0x68]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
jb 0x43fa4b
push dword [esp + 0x50]
call fcn.0044f9f1
add esp, 4
jmp 0x43fa4b
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x94]
push 4
push eax
push 0x1002
push 0xffff
push ebx
mov dword [esp + 0xa8], 0x40000
call esi
push 4
lea eax, [esp + 0x98]
push eax
push 0x1001
push 0xffff
push ebx
call esi
mov esi, dword [esp + 0x2c]
mov eax, 2
mov word [esp + 0x98], ax
movzx eax, word [esi + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0xa0], 0x10
mov word [esp + 0x9a], ax
lea eax, [esi + 0x8c]
jb 0x43f937
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x43fa1e
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x34]
call fcn.004057e0
push eax
mov edx, str.bind_error:
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x18]
call fcn.00405a70
mov esi, eax
add esp, 4
lea eax, [esp + 0x50]
cmp eax, esi
je 0x43f9d2
cmp dword [esp + 0x64], 0x10
jb 0x43f9b3
push dword [esp + 0x50]
call fcn.0044f9f1
add esp, 4
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.004045c0
cmp dword [esp + 0x28], 0x10
jb 0x43f9e5
push dword [esp + 0x14]
call fcn.0044f9f1
add esp, 4
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x43fa15
push dword [esp + 0x34]
call fcn.0044f9f1
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x43fa36
push 0
push 0x602695
lea ecx, [esp + 0x58]
mov dword [esi + 0x28], ebx
mov byte [esp + 0x54], 1
call fcn.00404c00
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00413370
lea ecx, [esp + 0x4c]
call fcn.00406730
mov eax, edi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005778cb
mov esp, ebp
pop ebp
ret 4