Function at 0x47df00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f3918
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x100], edi
jne 0x47e5fd
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x100], 1
cmp eax, edi
je 0x47df62
mov eax, dword [ebp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov ecx, dword [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esp + 0x2c], edi
mov esi, dword [ebp + 0x9c]
mov dword [esp + 0x80], edi
mov dword [esp + 0x18], edi
push str.QvodMediaCenter
lea ecx, [esp + 0x5c]
mov word [esp + 0x5c], di
call fcn.00406940
lea edx, [esp + 0x18]
lea eax, [esp + 0x58]
push edx
push eax
push str.selectSingleNode
lea ecx, [esi + 4]
mov byte [esp + 0x8c], 2
call fcn.004080f0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x58]
push ecx
mov dword [esi + 8], eax
mov byte [esp + 0x84], 1
call ebx
mov eax, dword [esi + 8]
test eax, eax
jl 0x47dfec
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47dfec
push eax
lea ecx, [esp + 0x30]
call fcn.004080d0
mov edi, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call fcn.0042ca10
xor esi, esi
cmp edi, esi
jne 0x47e040
mov edx, dword [ebp + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
cmp eax, esi
je 0x47e5fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x14]
call fcn.00427790
push str.files
lea ecx, [esp + 0x5c]
mov word [esp + 0x5c], 0
call fcn.00406940
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
push eax
push str.selectNodes
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 5
call fcn.004080f0
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
push ecx
mov byte [esp + 0x84], 4
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x14]
jl 0x47e0b8
test eax, eax
je 0x47e0b8
push eax
lea ecx, [esp + 0x38]
call fcn.004080d0
mov eax, dword [esp + 0x14]
mov esi, 1
test eax, eax
mov byte [esp + 0x80], 3
je 0x47e0ca
mov edx, dword [eax]
push eax
call dword [edx + 8]
test esi, esi
je 0x47e534
xor eax, eax
push 0x50d1ec
mov dword [esp + 0x4c], eax
mov word [esp + 0x4c], 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
push str.Qvodcfg.ini
lea edx, [esp + 0x20]
push 0x525768
push edx
mov byte [esp + 0x8c], 6
call fcn.00402910
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov byte [esp + 0x80], 7
je 0x47e177
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x47e147
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47e14e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47e15e
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004021f0
jmp 0x47e177
lea ecx, [esp + 0x14]
call fcn.00402350
mov esi, dword [esi]
mov dword [esp + 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x80], 6
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47e1ae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47e1ae
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
call fcn.00431670
push 0x1f91
push str.AdminPort
push str.QVODTERMINAL
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 8
call fcn.00431730
push eax
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [esp + 0x56], ax
call sub.WS2_32.dll_socket
lea ecx, [esp + 0x18]
push 4
push ecx
mov esi, eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x2c], 0x2710
call sub.WS2_32.dll_setsockopt
lea edx, [esp + 0x18]
push 4
push edx
push 0x1005
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
lea eax, [esp + 0x48]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
mov ecx, dword [esp + 0x88]
xor ebx, ebx
mov ebp, 5
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x47e4ec
xor edi, edi
mov word [esp + 0x58], di
lea edx, [esp + 0x58]
lea ecx, [esp + 0x34]
push edx
push str.length
mov byte [esp + 0x88], 9
call fcn.00469ae0
test eax, eax
mov dword [esp + 0x30], eax
jl 0x47e286
cmp word [esp + 0x58], 3
jne 0x47e286
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x58]
mov byte [esp + 0x80], 8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp ebx, edi
jge 0x47e4ec
lea ecx, [esp + 0x3c]
call fcn.00427790
xor edi, edi
test ebx, ebx
jl 0x47e4c8
lea ecx, [esp + 0x1c]
call fcn.00427790
mov word [esp + 0x68], 3
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x68]
push ecx
push edx
push str.item
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c], 0xc
call fcn.004080f0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x84], 0xb
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x47e31e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47e31e
push eax
lea ecx, [esp + 0x40]
call fcn.004080d0
mov edi, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call fcn.0042ca10
test edi, edi
je 0x47e4c8
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x20]
push 0x50e548
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 0xd
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x80], 0xe
je 0x47e3b4
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x47e384
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47e38b
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47e39b
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.004021f0
jmp 0x47e3b4
lea ecx, [esp + 0x10]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x80], 0xd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47e3eb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47e3eb
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
push 1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0040bd90
mov edi, dword [esp + 0x90]
push esi
mov ecx, edi
call fcn.00488600
test eax, eax
je 0x47e49a
push esi
call sub.WS2_32.dll_closesocket
push 6
push 1
push 2
call sub.WS2_32.dll_socket
lea ecx, [esp + 0x18]
push 4
push ecx
mov esi, eax
push 0x1006
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
lea edx, [esp + 0x18]
push 4
push edx
push 0x1005
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
lea eax, [esp + 0x48]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test ebp, ebp
jle 0x47e49a
mov eax, dword [esp + 0x10]
mov edx, dword [0x50d0e4]
dec ebp
dec ebx
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47e4cf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47e4cf
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
jmp 0x47e4cf
lea eax, [esp + 0x38]
mov ecx, edi
push eax
mov ebp, 5
call fcn.0047e610
test eax, eax
jne 0x47e4bd
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00469c20
lea ecx, [esp + 0x10]
call fcn.00402160
jmp 0x47e4cf
mov edi, dword [esp + 0x88]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 8
call fcn.0042ca10
mov eax, dword [edi + 0x24]
inc ebx
test eax, eax
je 0x47e250
push esi
call sub.WS2_32.dll_closesocket
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x28]
push edx
call fcn.0047f940
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 6
mov dword [esp + 0x40], 0x4fb734
call fcn.0040b370
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 3
call fcn.00402160
mov ebp, dword [esp + 0x88]
mov ecx, dword [ebp + 0x9c]
push 0
call fcn.00402ba0
mov eax, dword [0x525820]
mov esi, 1
cmp eax, esi
jne 0x47e55d
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.0047fc90
jmp 0x47e569
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00480590
mov edi, dword [0x525820]
mov ecx, dword [ebp + 0x68]
cmp edi, esi
push str.mediastand
sete bl
mov byte [esp + 0x8c], bl
call fcn.004d7300
test eax, eax
je 0x47e5a1
mov edx, dword [esp + 0x88]
mov ecx, eax
and edx, 0xff
push edx
call fcn.004c8070
mov ecx, dword [ebp + 0x68]
push str.mediasham
call fcn.004d7300
test eax, eax
je 0x47e5c1
xor ecx, ecx
test bl, bl
sete cl
push ecx
mov ecx, eax
call fcn.004c8070
mov edx, dword [ebp + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x34]
mov dword [ebp + 0x100], 0
mov byte [esp + 0x80], 0
call fcn.0042ca10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
call fcn.0042ca10
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret