Function at 0x10002927
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1878
call fcn.10010750
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1838], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1830], eax
xor eax, eax
push 0x3fe
mov word [ebp - 0x180c], ax
xor ebx, ebx
lea eax, [ebp - 0x180a]
push ebx
push eax
mov esi, ecx
call fcn.1000c980
push 0x1400
lea eax, [ebp - 0x140c]
push ebx
push eax
call fcn.1000c980
push 0x38
lea eax, [ebp - 0x1870]
push ebx
push eax
call fcn.1000c980
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x1840], eax
lea eax, [ebp - 0x140c]
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0xc0c]
mov dword [ebp - 0x1850], eax
lea eax, [ebp - 0x180c]
mov dword [ebp - 0x1870], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x1848], eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1858], eax
mov eax, 0x200
add esp, 0x24
mov dword [ebp - 0x1854], eax
mov dword [ebp - 0x1844], eax
mov dword [ebp - 0x186c], eax
mov dword [ebp - 0x184c], eax
mov dword [ebp - 0x1860], eax
mov dword [ebp - 0x183c], eax
lea eax, [ebp - 0x1874]
push eax
push SysReAllocString
push ebx
push esi
mov dword [ebp - 0x1874], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push ebx
push ebx
push ebx
push 4
pop esi
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
push dword [ebp - 0x185c]
mov dword [ebp - 0x181c], eax
push dword [ebp - 0x1864]
mov dword [ebp - 0x1824], ebx
push eax
mov dword [ebp - 0x1834], esi
mov dword [ebp - 0x1810], ebx
mov dword [ebp - 0x1828], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x1848]
mov dword [ebp - 0x1814], eax
push str.HEAD
push eax
call edi
push 0x20000000
push 0xffffffffffffffff
mov esi, eax
push str.Cache_Control:_no_cache_r_nPragma:_no_cache
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10002ace
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
push dword [ebp - 0x181c]
call esi
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea eax, [ebp - 0x1828]
push eax
lea eax, [ebp - 0x1834]
push eax
lea eax, [ebp - 0x1810]
push eax
push ebx
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x1848]
push 0x1001c6f4
push dword [ebp - 0x1814]
call edi
push 0x20000000
push 0xffffffffffffffff
mov edi, eax
push str.Cache_Control:_no_cache_r_nPragma:_no_cache
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10002b4c
push edi
jmp 0x10002aab
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp dword [ebp - 0x1810], 1
jbe 0x10002b46
push dword [ebp - 0x1810]
call fcn.1000a73e
push dword [ebp - 0x1810]
mov dword [ebp - 0x1820], eax
push ebx
push eax
call fcn.1000c980
add esp, 0x10
mov dword [ebp - 0x1818], ebx
lea eax, [ebp - 0x1824]
push eax
push dword [ebp - 0x1810]
push dword [ebp - 0x1820]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
inc dword [ebp - 0x1818]
cmp dword [ebp - 0x1818], 5
jge 0x10002bc2
cmp dword [ebp - 0x1824], ebx
je 0x10002b91
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x1824], ecx
ja 0x10002bde
push dword [ebp - 0x1820]
call fcn.1000b541
pop ecx
jmp 0x10002b46
cmp dword [ebp + 0xc], ecx
jl 0x10002c1c
mov eax, dword [ebp - 0x1810]
mov edx, dword [ebp - 0x1830]
mov dword [edx], eax
cmp eax, dword [ebp + 0xc]
je 0x10002c1c
push dword [ebp - 0x1820]
call fcn.1000b541
pop ecx
push edi
call esi
push dword [ebp - 0x1814]
call esi
push dword [ebp - 0x181c]
call esi
mov al, bl
jmp 0x10002abf
push ebx
push ecx
push 4
push ebx
push ecx
push 0xc0000000
push dword [ebp - 0x1838]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
lea ecx, [ebp - 0x182c]
push ecx
push dword [ebp - 0x1810]
mov dword [ebp - 0x1818], eax
push dword [ebp - 0x1820]
mov dword [ebp - 0x182c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1818]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x1818]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10002bf6