Function at 0x4066c0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x41870f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4219cc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4219cc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x78], 0
mov ecx, 0x421d38
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_310]
test esi, esi
mov ebx, 2
mov byte [esp + 0x78], bl
je 0x406784
xor eax, eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
mov eax, dword [esi + 0xc]
mov byte [esp + 0x38], 0
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0
push 1
push ebx
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x440c
mov dword [esp + 0x30], eax
mov word [esp + 0x2c], bx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x2c]
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x406823
push str.tjqzservice_uqs______________hnadmin
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 3
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ebx, dword [sym.imp.WS2_32.dll_send]
push eax
push esi
call ebx
lea ecx, [esp + 0x18]
mov edi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cmp edi, eax
jge 0x40684e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x80]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x84]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor al, al
jmp 0x406a3e
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x1e
lea eax, [esp + 0x54]
push eax
push esi
call ebp
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + eax + 0x50], 0
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x41bc28
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
test eax, eax
je 0x4068a2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp 0x406819
push str.queryappversion:01
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 5
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
mov edi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cmp edi, eax
jge 0x406901
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp 0x406819
push 0
push 0x1e
lea edx, [esp + 0x54]
push edx
push esi
call ebp
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
movsx eax, byte [esp + 0x4f]
movsx ecx, byte [esp + 0x4e]
movsx edx, byte [esp + 0x4d]
push eax
movsx eax, byte [esp + 0x50]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str._d._d._d._d
push ecx
mov byte [esp + 0x90], 6
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0x18
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
jl 0x40697c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp 0x4068e8
push 0x41bea8
lea ecx, [esp + 0x88]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x406966
push str.downloadappfile:01
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
mov edi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cmp edi, eax
push esi
jl 0x406967
push ebp
call fcn.00406190
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x80]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x84]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00417312
add esp, 0x68
ret