Function at 0x437310
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5214
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x62c490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x44], 0
lea ecx, [ebp - 0x58]
call fcn.004102e0
mov dword [ebp - 4], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0xc], 0xffffffff
jne 0x437426
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004085c0
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
push eax
push str.create_socket_error:
lea ecx, [ebp - 0xc4]
push ecx
call fcn.004089a0
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x54]
call fcn.0040f420
lea ecx, [ebp - 0xc4]
call fcn.004064f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004064f0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x437756
lea edx, [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00437040
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00411830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184]
call fcn.00409860
movzx edx, byte [ebp - 0x58]
test edx, edx
jne 0x437497
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x437756
lea edx, [ebp - 0x1cc]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00437240
lea ecx, [ebp - 0x1cc]
call fcn.00409860
push 0x10
call fcn.0044f1d5
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov ecx, 2
mov edx, dword [ebp - 0x5c]
mov word [edx], cx
mov eax, dword [ebp - 0x60]
movzx ecx, word [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x5c]
mov word [edx + 2], ax
mov ecx, dword [ebp - 0x60]
add ecx, 0x10
call fcn.00406570
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
push 0x10
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x437605
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.004085c0
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xac]
push edx
push 0x602348
lea eax, [ebp - 0xf4]
push eax
call fcn.004089a0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f420
lea ecx, [ebp - 0xf4]
call fcn.004064f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.004064f0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0044f202
add esp, 4
cmp dword [ebp - 0x68], 0
jne 0x4375c9
mov dword [ebp - 0x98], 0
jmp 0x4375d9
mov dword [ebp - 0x5c], 0x8123
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x437756
push 0x14
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4376fb
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xdc]
push eax
call fcn.004085c0
add esp, 8
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x8c]
push edx
push str.listen_error:
lea eax, [ebp - 0x124]
push eax
call fcn.004089a0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f420
lea ecx, [ebp - 0x124]
call fcn.004064f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004064f0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.0044f202
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x4376c5
mov dword [ebp - 0x7c], 0
jmp 0x4376d2
mov dword [ebp - 0x5c], 0x8123
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x437756
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0044f202
add esp, 4
cmp dword [ebp - 0x6c], 0
jne 0x43771f
mov dword [ebp - 0x84], 0
jmp 0x43772f
mov dword [ebp - 0x5c], 0x8123
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409860
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577115
mov esp, ebp
pop ebp
ret 4