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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebp
push 8
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0xc], ebp
test ebp, ebp
jne 0x470796
movsx eax, word [esp + 0xf0]
push eax
push str.Red:_Error_al_crear_el_socket_para_escuchar_por_el_puerto__d._No_hay_memoria.
push ebp
call fcn.0042a000
add esp, 0xc
xor al, al
pop ebp
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.004c6212
add esp, 0xe8
ret 4
push esi
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x470837
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push 0
push 0xc8
lea ecx, [esp + 0x2c]
push ecx
push 0
mov esi, eax
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x470817
lea eax, [esp + 0x24]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4707e0
sub eax, edx
cmp eax, 2
jb 0x4707f2
mov byte [esp + eax + 0x22], cl
movsx eax, word [esp + 0xf4]
lea edx, [esp + 0x24]
push edx
push eax
push esi
push str.Red:_Error__d_al_crear_el_socket_para_escuchar_por_el_puerto__d.__s
push 0
call fcn.0042a000
add esp, 0x14
xor al, al
jmp 0x470a6f
movsx ecx, word [esp + 0xf4]
push ecx
push esi
push 0x4fcca8
push 0
call fcn.0042a000
add esp, 0x10
xor al, al
jmp 0x470a6f
push edi
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4708df
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0
push 0xc8
lea eax, [esp + 0x30]
push eax
push 0
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4708bf
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470888
sub eax, edx
cmp eax, 2
jb 0x47089a
mov byte [esp + eax + 0x26], cl
movsx edx, word [esp + 0xf8]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
push str.Red:_Error__d_al_hacer_el_socket_no_bloqueante_para_escuchar_por_el_puerto__d.__s
push 0
call fcn.0042a000
add esp, 0x14
xor al, al
jmp 0x470a6e
movsx eax, word [esp + 0xf8]
push eax
push edi
push str.Red:_Error__d_al_hacer_el_socket_no_bloqueante_para_escuchar_por_el_puerto__d.
push 0
call fcn.0042a000
add esp, 0x10
xor al, al
jmp 0x470a6e
push ebx
mov ebx, dword [esp + 0xfc]
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea edx, [esp + 0x20]
push edx
mov ecx, 2
push esi
mov word [esp + 0x2a], ax
mov word [esp + 0x28], cx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x47099f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0
push 0xc8
lea eax, [esp + 0x34]
push eax
push 0
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x470984
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470952
sub eax, edx
cmp eax, 2
jb 0x470964
mov byte [esp + eax + 0x2a], cl
lea ecx, [esp + 0x2c]
push ecx
movsx edx, bx
push edx
push edi
push str.Red:_Error__d_al_bindear_el_socket_para_escuchar_por_el_puerto__d.__s
push 0
call fcn.0042a000
add esp, 0x14
xor al, al
jmp 0x470a6d
movsx eax, bx
push eax
push edi
push str.Red:_Error__d_al_bindear_el_socket_para_escuchar_por_el_puerto__d.
push 0
call fcn.0042a000
add esp, 0x10
xor al, al
jmp 0x470a6d
push SQLAllocStmt
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x470a37
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0
push 0xc8
lea ecx, [esp + 0x34]
push ecx
push 0
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x470a1f
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4709f0
sub eax, edx
cmp eax, 2
jb 0x470a02
mov byte [esp + eax + 0x2a], cl
lea edx, [esp + 0x2c]
push edx
movsx eax, bx
push eax
push edi
push str.Red:_Error__d_al_poner_el_socket_en_estado_de_escucha_para_escuchar_por_el_puerto__d.__s
push 0
call fcn.0042a000
add esp, 0x14
xor al, al
jmp 0x470a6d
movsx ecx, bx
push ecx
push edi
push str.Red:_Error__d_al_poner_el_socket_en_estado_de_escucha_para_escuchar_por_el_puerto__d.
push 0
call fcn.0042a000
add esp, 0x10
xor al, al
jmp 0x470a6d
mov ecx, dword [esp + 0x10]
movsx edi, bx
lea edx, [esp + 0x18]
mov dword [ebp], esi
push edx
add ecx, 8
mov dword [ebp + 4], edi
call fcn.00420ae0
call fcn.0044ac60
test al, al
je 0x470a6b
push esi
push edi
push str.Red:_Escuchamos_por_el_puerto__d._Socket__d
push 2
call fcn.0042a000
add esp, 0x10
mov al, 1
pop ebx
pop edi
mov ecx, dword [esp + 0xec]
pop esi
pop ebp
xor ecx, esp
call fcn.004c6212
add esp, 0xe8
ret 4