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

Disassembly:
mov eax, 0x12892a8
call fcn.01160168
mov eax, 0x287c
call fcn.01160330
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.01045d3e
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2830]
push eax
mov ecx, eax
call fcn.01044f45
lea ecx, [ebp - 0x2860]
call fcn.01196444
mov byte [ebp - 4], 1
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
mov edi, 0x80000000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x1197cd2
push 4
push 2
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x2860]
call fcn.011957b6
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x281c], esi
jl 0x1197cd7
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.0119598f
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 0x1197cd2
cmp byte [esi + 0x39], bl
jne 0x1197cd2
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.01032977
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.011977a9
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0x2824]
call fcn.01044c82
push 0x100f0c4
lea ecx, [ebp - 0x2824]
call fcn.010524f5
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x2824]
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1197c85
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.011963f7
lea eax, [ebp - 0x2828]
push eax
lea eax, [ebp - 0x2830]
push eax
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.01196a20
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 0x1197c43
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.011958c0
cmp dword [ebp - 0x282c], ebx
mov dword [ebp - 0x2834], eax
mov dword [ebp - 0x2848], ebx
jbe 0x1197b19
cmp dword [ebp - 0x2848], 0xa
jge 0x1197b19
mov eax, dword [ebp - 0x282c]
sub eax, edi
mov ecx, 0x400
cmp eax, ecx
jae 0x1197ab9
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 0x1197aec
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.01196120
push 1
push 0x32
call esi
cmp edi, dword [ebp - 0x282c]
jb 0x1197a9d
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.011958c0
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 0x1197b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1197b86
cmp dword [ebp - 0x2840], 0x7d0
jae 0x1197c55
inc dword [ebp - 0x2840]
jmp 0x1197a4b
cmp eax, ebx
jle 0x1197c5f
jmp 0x1197c55
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.010328fa
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.010328fa
mov ecx, dword [ebp - 0x2844]
call fcn.010477a3
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 0x1197c2f
cmp eax, ebx
jbe 0x1197c2f
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.010524f5
cmp dword [ebp - 0x2850], ebx
jne 0x1197c39
xor esi, esi
cmp esi, ebx
jne 0x1197bbc
jmp 0x1197c8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1197c53
call esi
jmp 0x1197c5f
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x281c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.010328fa
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.010328fa
jmp 0x1197c8f
mov dword [ebp - 0x281c], 0x80004005
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x1197d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2838]
call fcn.010328fa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.010328fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.010328fa
mov esi, 0x80004005
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2860]
call fcn.01196470
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2830]
call fcn.010454b8
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.0115fe73
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.010328fa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.010328fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.010328fa
mov esi, dword [ebp - 0x281c]
jmp 0x1197cd7