Function at 0x4347b4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4f
push 0
push 0
dec ecx
jne 0x4347bd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x15], dl
mov ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.0049b4b8
mov eax, dword [ebp + 0x14]
call fcn.0049b4b8
xor eax, eax
push ebp
push 0x43505a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x10], 0
jne 0x434fe9
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xe8], eax
cmp byte [ebx + 0xec], 0
jne 0x43481a
test eax, eax
jne 0x43481a
mov dword [ebx + 0xe8], 0x1e
cmp byte [ebp - 0x15], 4
jne 0x43482a
mov esi, 0xfffffffe
jmp 0x434fee
cmp byte [ebp - 0x15], 1
je 0x434836
cmp byte [ebp + 8], 0
je 0x43485b
cmp word [0x4f976c], 0
jne 0x43485b
push 0x4f976c
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x43485b
or esi, 0xffffffff
jmp 0x434fee
or esi, 0xffffffff
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.0049b0b0
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 0x14]
call fcn.0049b0b0
cmp byte [ebp - 0x15], 3
jne 0x4348be
cmp dword [ebp - 0x1c], 0
je 0x43488f
mov eax, dword [ebp - 0x1c]
mov edx, 0x435074
call fcn.0049b414
je 0x43489c
lea eax, [ebp - 0x1c]
mov edx, 0x435074
call fcn.0049b0b0
cmp dword [ebp + 0x14], 0
je 0x4348b1
mov eax, dword [ebp + 0x14]
mov edx, 0x435080
call fcn.0049b414
je 0x4348be
lea eax, [ebp + 0x14]
mov edx, 0x435080
call fcn.0049b0b0
cmp byte [ebp - 0x15], 3
jne 0x434c56
cmp dword [ebp - 0x1c], 0
je 0x4348dd
mov eax, dword [ebp - 0x1c]
mov edx, 0x435074
call fcn.0049b414
je 0x4348fa
cmp dword [ebp + 0x14], 0
je 0x434c56
mov eax, dword [ebp + 0x14]
mov edx, 0x435080
call fcn.0049b414
jne 0x434c56
push 0x435090
push dword [ebp - 0x1c]
push 0x43509c
push dword [ebp + 0x14]
lea eax, [ebp - 0x12c]
mov edx, 4
call fcn.0049b390
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov ecx, 0xff
call fcn.0049b2ac
mov edi, 0x65
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x128]
inc eax
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x434acc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xe7
je 0x434a0c
mov eax, 0x7e1
mov dword [ebx + 0xdc], eax
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0xb
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0
lea edx, [ebp - 0x248]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov ecx, dword [ebx + 0xdc]
mov eax, dword [eax + ecx*4 - 0x1f40]
mov ecx, 2
call fcn.00488a38
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
cmp byte [ebp + 8], 0
jne 0x434acc
mov esi, 0xfffffff7
jmp 0x434fee
imul eax, dword [ebp + 0xc], 0x3e8
push eax
lea eax, [ebp - 0x128]
inc eax
push eax
call sub.KERNEL32.DLL_WaitNamedPipeA
test eax, eax
jne 0x434ac5
mov eax, 0x7e0
mov dword [ebx + 0xdc], eax
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0xb
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0
lea edx, [ebp - 0x248]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov ecx, dword [ebx + 0xdc]
mov eax, dword [eax + ecx*4 - 0x1f40]
mov ecx, 2
call fcn.00488a38
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
cmp byte [ebp + 8], 0
jne 0x434acc
mov esi, 0xfffffff7
jmp 0x434fee
dec edi
jne 0x434935
cmp esi, 0xffffffff
jne 0x434b6b
mov edi, 0x7e1
mov dword [ebx + 0xdc], edi
lea eax, [ebp - 0x250]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0xb
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0
lea edx, [ebp - 0x248]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + edi*4 - 0x1f40]
mov ecx, 2
call fcn.00488a38
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
cmp byte [ebp + 8], 0
jne 0x434b6b
mov esi, 0xfffffff7
jmp 0x434fee
cmp esi, 0xffffffff
je 0x434c2e
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.DLL_SetNamedPipeHandleState
test eax, eax
jne 0x434c2e
push esi
call sub.KERNEL32.DLL_CloseHandle
or esi, 0xffffffff
mov edi, 0x7e2
mov dword [ebx + 0xdc], edi
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0xb
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0
lea edx, [ebp - 0x248]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + edi*4 - 0x1f40]
mov ecx, 2
call fcn.00488a38
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
cmp byte [ebp + 8], 0
jne 0x434c2e
mov esi, 0xfffffff7
jmp 0x434fee
cmp esi, 0xffffffff
jne 0x434c43
cmp byte [ebp + 8], 0
jne 0x434c56
mov esi, 0xfffffff7
jmp 0x434fee
mov byte [ebx + 0x10], 3
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
xor esi, esi
jmp 0x434fee
inc esi
jne 0x434c5f
cmp byte [ebp - 0x15], 3
je 0x434c69
cmp byte [ebp + 8], 0
je 0x434fd4
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
call fcn.0049b0b0
lea eax, [ebp + 0x14]
mov edx, dword [ebp - 0x28]
call fcn.0049b0b0
cmp dword [ebp + 0x10], 0
jne 0x434c8c
mov dword [ebp + 0x10], 0xcea
cmp dword [ebp - 0x1c], 0
jne 0x434c9f
lea eax, [ebp - 0x1c]
mov edx, 0x4350ac
call fcn.0049b0b0
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x434d1e
mov esi, 0x7d4
mov dword [ebx + 0xdc], esi
lea eax, [ebp - 0x258]
push eax
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x25c], 0
lea edx, [ebp - 0x260]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + esi*4 - 0x1f40]
xor ecx, ecx
call fcn.00488a38
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
mov esi, 0xfffffff8
jmp 0x434fee
xor edx, edx
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_vio_blocking_qqro
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.00499a24
mov word [ebp - 0x14], 2
mov eax, dword [ebp - 0x1c]
call fcn.0049b4c8
mov esi, eax
push esi
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x434d60
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x434e27
push esi
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x434df4
mov esi, 0x7d5
mov dword [ebx + 0xdc], esi
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x274], eax
mov byte [ebp - 0x270], 0xb
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], 0
lea edx, [ebp - 0x274]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + esi*4 - 0x1f40]
mov ecx, 1
call fcn.00488a38
mov edx, dword [ebp - 0x264]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
mov esi, 0xfffffff9
push edi
call sub.WSOCK32.DLL_closesocket
jmp 0x434fee
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
xor ecx, ecx
mov cl, byte [edx]
movzx esi, byte [edx + 1]
shl esi, 8
add ecx, esi
movzx esi, byte [edx + 2]
shl esi, 0x10
add ecx, esi
movzx edx, byte [edx + 3]
shl edx, 0x18
add ecx, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov word [eax + 0xa], 0xa
mov eax, dword [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x12], ax
mov dword [ebx + 4], edi
mov byte [ebx + 0x10], 1
xor edx, edx
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_vio_blocking_qqro
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WSOCK32.DLL_connect
test eax, eax
jge 0x434efc
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x434efc
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov esi, 0x7d3
mov dword [ebx + 0xdc], esi
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x274], eax
mov byte [ebp - 0x270], 0xb
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], 0
lea edx, [ebp - 0x274]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + esi*4 - 0x1f40]
mov ecx, 1
call fcn.00488a38
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
mov esi, 0xfffffffa
push edi
call sub.WSOCK32.DLL_closesocket
jmp 0x434fee
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_fastsend_qqrv
mov dl, 1
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_keepalive_qqro
mov esi, dword [ebx + 0xe8]
test esi, esi
je 0x434fbc
mov edx, esi
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_vio_poll_read_qqrui
test al, al
jne 0x434fbc
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov esi, 0x7d3
mov dword [ebx + 0xdc], esi
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x274], eax
mov byte [ebp - 0x270], 0xb
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], 0
lea edx, [ebp - 0x274]
mov eax, dword [sym.VIRUS.exe__Umydmerrors_client_errors]
mov eax, dword [eax + esi*4 - 0x1f40]
mov ecx, 1
call fcn.00488a38
mov edx, dword [ebp - 0x27c]
lea eax, [ebp - 0x22c]
mov ecx, 0xff
call fcn.0049b2ac
lea edx, [ebp - 0x22c]
lea eax, [ebx + 0x11]
mov cl, 0xc8
call fcn.00499914
mov esi, 0xfffffff9
push edi
call sub.WSOCK32.DLL_closesocket
jmp 0x434fee
cmp byte [ebx + 0xec], 0
je 0x434fd4
cmp byte [ebx + 0x10], 1
jne 0x434fd4
mov dl, 1
mov eax, ebx
call sym.VIRUS.exe__Umydmvio_TMysqlVio_vio_blocking_qqro
xor eax, eax
mov dword [ebx + 8], eax
xor esi, esi
mov byte [ebx + 0x11], 0
xor eax, eax
mov dword [ebx + 0xdc], eax
jmp 0x434fee
mov esi, 0xffffffec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435061
lea eax, [ebp - 0x27c]
mov edx, 2
call fcn.0049b03c
lea eax, [ebp - 0x264]
call fcn.0049b018
lea eax, [ebp - 0x258]
mov edx, 4
call fcn.0049b03c
lea eax, [ebp - 0x230]
call fcn.0049b018
lea eax, [ebp - 0x12c]
call fcn.0049b018
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0049b03c
lea eax, [ebp - 0x1c]
call fcn.0049b018
lea eax, [ebp + 0x14]
call fcn.0049b018
ret