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

Disassembly:
mov eax, 0x128948e
call fcn.01160118
mov eax, 0x287c
call fcn.011602e0
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.01045e8e
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2830]
push eax
mov ecx, eax
call fcn.01045001
lea ecx, [ebp - 0x2860]
call fcn.0119650c
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 0x1197d9a
push 4
push 2
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x2860]
call fcn.0119588f
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x281c], esi
jl 0x1197d9f
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.01195a68
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 0x1197d9a
cmp byte [esi + 0x39], bl
jne 0x1197d9a
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.01044f8b
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.01197871
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0x2824]
call fcn.01044d17
push 0x100f0c4
lea ecx, [ebp - 0x2824]
call fcn.010524eb
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x2824]
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1197d4d
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.011964bf
lea eax, [ebp - 0x2828]
push eax
lea eax, [ebp - 0x2830]
push eax
lea eax, [ebp - 0x2818]
push eax
mov ecx, esi
call fcn.01196ae8
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 0x1197d0b
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.01195999
cmp dword [ebp - 0x282c], ebx
mov dword [ebp - 0x2834], eax
mov dword [ebp - 0x2848], ebx
jbe 0x1197be1
cmp dword [ebp - 0x2848], 0xa
jge 0x1197be1
mov eax, dword [ebp - 0x282c]
sub eax, edi
mov ecx, 0x400
cmp eax, ecx
jae 0x1197b81
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 0x1197bb4
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.011961e8
push 1
push 0x32
call esi
cmp edi, dword [ebp - 0x282c]
jb 0x1197b65
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.01195999
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 0x1197c5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1197c4e
cmp dword [ebp - 0x2840], 0x7d0
jae 0x1197d1d
inc dword [ebp - 0x2840]
jmp 0x1197b13
cmp eax, ebx
jle 0x1197d27
jmp 0x1197d1d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.0103290a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.0103290a
mov ecx, dword [ebp - 0x2844]
call fcn.010478ab
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 0x1197cf7
cmp eax, ebx
jbe 0x1197cf7
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.010524eb
cmp dword [ebp - 0x2850], ebx
jne 0x1197d01
xor esi, esi
cmp esi, ebx
jne 0x1197c84
jmp 0x1197d57
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1197d1b
call esi
jmp 0x1197d27
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x281c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2828]
call fcn.0103290a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2820]
call fcn.0103290a
jmp 0x1197d57
mov dword [ebp - 0x281c], 0x80004005
push dword [ebp - 0x2814]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x1197dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2838]
call fcn.0103290a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.0103290a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.0103290a
mov esi, 0x80004005
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2860]
call fcn.01196538
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2830]
call fcn.0104508a
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.0115fe1a
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.0103290a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2818]
call fcn.0103290a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2824]
call fcn.0103290a
mov esi, dword [ebp - 0x281c]
jmp 0x1197d9f