Function at 0x402b30
Capabilities:
Create tcp socket
Create thread
Create udp socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x78]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._ConnectionManager_NewConnection
test eax, eax
jne 0x402cc0
mov ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._ConnectionManager_GetConnectionById
mov dword [esp + 4], esi
mov edi, eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sym._ConnectionManager_GetPollFdById
mov dword [esp + 0x28], eax
movzx eax, word [ebp + 2]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
lea edx, [ebp + 5]
sub esp, 4
movzx eax, ax
mov dword [esp + 0x20], edx
movzx edx, byte [ebp + 4]
mov dword [esp + 0x24], eax
mov byte [ebp + edx + 5], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ebp, eax
lea ecx, [esp + 0x3c]
cmp eax, 0xffffffff
je 0x402d10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 1
mov dword [esp + 8], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
je 0x402d10
mov dword [edi + 8], ebp
mov dword [esp], 0x1c
call sym._malloc
mov ebp, eax
test eax, eax
je 0x402d71
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x68]
mov dword [ebp + 4], esi
mov dword [ebp], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x14], edx
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], sym._ResolveDNS_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
sub esp, 0x18
test eax, eax
je 0x402d71
mov eax, dword [esp + 0x24]
mov esi, 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
mov dword [edi + 4], 2
sub esp, 4
mov word [edi + 0x12], ax
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, ebx
mov word [ecx + 4], si
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x3c]
mov edx, 0x105
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov word [esp + 0x3c], dx
mov edx, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], 2
mov dword [esp + 0xc], 6
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._Send_Ica_GenericPacket
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x105
mov dword [edi + 8], 0xffffffff
mov edx, dword [esp + 0x68]
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 6
mov dword [esp], eax
call sym._Send_Ica_GenericPacket
mov eax, dword [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._ConnectionManager_CloseConnectionById
mov dword [esp], 1
call sym._exit
mov ebx, 0xffffffff
jmp 0x402d04