Function at 0x43e930
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
cmp dword [ebp + 0x10], 0
jne 0x43e96e
cmp dword [ebp + 8], 2
je 0x43e985
cmp dword [ebp + 8], 1
je 0x43e985
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jne 0x43e96e
or eax, 0xffffffff
jmp 0x43eb81
cmp dword [ebp + 0x14], 0
jne 0x43e9a2
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor ecx, ecx
jne 0x43e98b
or eax, 0xffffffff
jmp 0x43eb81
push 0
mov edx, dword [ebp + 0xc]
push edx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x43e9c1
or eax, 0xffffffff
jmp 0x43eb81
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0049d330
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x14], cx
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor edx, edx
mov word [ebp - 0x12], dx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x43ea08
jmp 0x43eb2b
push 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x43ea1e
jmp 0x43eb2b
push 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x43ea3a
jmp 0x43eb2b
mov dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x43ea5d
jmp 0x43eb2b
cmp dword [ebp - 0x2c], 0x10
je 0x43ea68
jmp 0x43eb24
push 0x10
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43ea82
jmp 0x43eb2b
mov dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x43eaa9
jmp 0x43eb2b
cmp dword [ebp - 0x2c], 0x10
je 0x43eab1
jmp 0x43eb24
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x43eaca
jmp 0x43eb2b
cmp dword [ebp - 0x2c], 0x10
jne 0x43eaf0
movzx eax, word [ebp - 0x14]
movzx ecx, word [ebp - 0x24]
cmp eax, ecx
jne 0x43eaf0
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x20]
jne 0x43eaf0
movzx eax, word [ebp - 0x12]
movzx ecx, word [ebp - 0x22]
cmp eax, ecx
je 0x43eaf2
jmp 0x43eb24
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043cd40
add esp, 4
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx + ecx], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
mov dword [edx + ecx], eax
xor eax, eax
jmp 0x43eb81
mov dword [ebp - 0x38], 0x2745
cmp dword [ebp - 0x38], 0
jge 0x43eb3a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x43eb4c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0043cd40
add esp, 4
cmp dword [ebp - 0x30], 0xffffffff
je 0x43eb5e
mov edx, dword [ebp - 0x30]
push edx
call fcn.0043cd40
add esp, 4
cmp dword [ebp - 0x34], 0xffffffff
je 0x43eb70
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043cd40
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor edx, edx
jne 0x43eb70
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret