Function at 0x1197bb7
Capabilities:
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x12893ec
call fcn.01160458
mov eax, 0x287c
call fcn.01160620
mov eax, dword [0x12cf8c8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2834], eax
mov eax, dword [ebp + 0xc]
push edi
push dword [esi]
mov dword [ebp - 0x2838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x284c], ecx
lea ecx, [ebp - 0x2830]
mov dword [ebp - 0x2844], eax
call fcn.01046065
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2830]
push eax
mov ecx, eax
call fcn.0104520c
lea ecx, [ebp - 0x2860]
call fcn.011967eb
mov byte [ebp - 4], 1
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
mov edi, SysReAllocString
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x1198079
push 4
push 2
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x2860]
call fcn.01195b6e
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x281c], esi
jl 0x119807e
mov eax, dword [ebp - 0x2860]
mov esi, dword [ebp - 0x284c]
mov dword [ebp - 0x2854], eax
mov eax, dword [ebp - 0x285c]
mov dword [ebp - 0x282c], eax
mov eax, dword [ebp - 0x2838]
mov edx, dword [eax]
push ebx
mov ecx, esi
call fcn.01195d47
or eax, edi
push eax
push ebx
push ebx
push 0x1014238
push edx
push 0x1014874
push dword [ebp - 0x2834]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x2814], eax
je 0x1198079
cmp byte [esi + 0x39], bl
jne 0x1198079
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x2824], eax
mov byte [ebp - 4], 2
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x2818], eax
mov byte [ebp - 4], 3
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x2838], eax
mov byte [ebp - 4], 4
push 0x1014818
lea ecx, [ebp - 0x2824]
mov dword [ebp - 0x2840], ebx
call fcn.01045196
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.01197b50
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0x2824]
call fcn.01044f22
push 0x100f0c4
lea ecx, [ebp - 0x2824]
call fcn.01052ada
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x2824]
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x119802c
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x2820], eax
mov byte [ebp - 4], 5
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x2828], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2820]
push eax
lea eax, [ebp - 0x2830]
push eax
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.0119679e
lea eax, [ebp - 0x2828]
push eax
lea eax, [ebp - 0x2830]
push eax
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.01196dc7
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
xor eax, eax
push 0xa
pop ecx
lea edi, [ebp - 0x2888]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2820]
mov ecx, dword [ebp - 0x2828]
mov dword [ebp - 0x2888], 0x28
mov eax, dword [eax - 8]
mov ecx, dword [ecx - 8]
add eax, ecx
add eax, dword [ebp - 0x282c]
mov dword [ebp - 0x286c], eax
push ebx
push 8
push ebx
lea eax, [ebp - 0x2888]
push eax
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x1197fea
mov ecx, dword [ebp - 0x2820]
mov eax, dword [ecx - 8]
lea edx, [ebp - 0x283c]
push edx
push eax
push ecx
push dword [ebp - 0x2814]
xor edi, edi
call fcn.01195c78
cmp dword [ebp - 0x282c], ebx
mov dword [ebp - 0x2834], eax
mov dword [ebp - 0x2848], ebx
jbe 0x1197ec0
cmp dword [ebp - 0x2848], 0xa
jge 0x1197ec0
mov eax, dword [ebp - 0x282c]
sub eax, edi
mov ecx, 0x400
cmp eax, ecx
jae 0x1197e60
mov ecx, eax
lea eax, [ebp - 0x283c]
push eax
mov eax, dword [ebp - 0x2854]
push ecx
add eax, edi
push eax
push dword [ebp - 0x2814]
mov dword [ebp - 0x283c], ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, ebx
mov dword [ebp - 0x2834], eax
jne 0x1197e93
inc dword [ebp - 0x2848]
add edi, dword [ebp - 0x283c]
xor edx, edx
mov eax, edi
imul eax, eax, 0x64
div dword [ebp - 0x282c]
mov ecx, dword [ebp - 0x284c]
push eax
call fcn.011964c7
push 1
push 0x32
call esi
cmp edi, dword [ebp - 0x282c]
jb 0x1197e44
push 1
push 0x32
call esi
mov ecx, dword [ebp - 0x2828]
mov eax, dword [ecx - 8]
lea edx, [ebp - 0x283c]
push edx
push eax
push ecx
push dword [ebp - 0x2814]
call fcn.01195c78
mov edi, dword [ebp - 0x2834]
push 1
push 0x32
and edi, eax
call esi
push ebx
push 8
push ebx
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
and edi, eax
jne 0x1197f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1197f2d
cmp dword [ebp - 0x2840], 0x7d0
jae 0x1197ffc
inc dword [ebp - 0x2840]
jmp 0x1197df2
cmp eax, ebx
jle 0x1198006
jmp 0x1197ffc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.010328fe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.010328fe
mov ecx, dword [ebp - 0x2844]
call fcn.01047cc7
lea eax, [ebp - 0x2850]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x2814]
mov byte [ebp - 0x810], bl
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0x2850]
mov byte [ebp + eax - 0x810], bl
je 0x1197fd6
cmp eax, ebx
jbe 0x1197fd6
push 0x1000
lea ecx, [ebp - 0x2810]
push ecx
push eax
lea eax, [ebp - 0x810]
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x2844]
mov word [ebp + eax*2 - 0x2810], bx
lea eax, [ebp - 0x2810]
push eax
call fcn.01052ada
cmp dword [ebp - 0x2850], ebx
jne 0x1197fe0
xor esi, esi
cmp esi, ebx
jne 0x1197f63
jmp 0x1198036
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1197ffa
call esi
jmp 0x1198006
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x281c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.010328fe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.010328fe
jmp 0x1198036
mov dword [ebp - 0x281c], 0x80004005
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x11980b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2838]
call fcn.010328fe
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.010328fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.010328fe
mov esi, 0x80004005
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2860]
call fcn.01196817
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2830]
call fcn.01045295
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0116015a
leave
ret 0x10
mov eax, dword [ebp - 0x2844]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2838]
call fcn.010328fe
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.010328fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.010328fe
mov esi, dword [ebp - 0x281c]
jmp 0x119807e