Function at 0x100028b9
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, 0x1880
call fcn.10010ab0
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1838], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x1824], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x182c], 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.1000cce0
push 0x1400
lea eax, [ebp - 0x140c]
push ebx
push eax
call fcn.1000cce0
push 0x38
lea eax, [ebp - 0x1878]
push ebx
push eax
call fcn.1000cce0
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x1848], eax
lea eax, [ebp - 0x140c]
mov dword [ebp - 0x186c], eax
lea eax, [ebp - 0xc0c]
mov dword [ebp - 0x1858], eax
lea eax, [ebp - 0x180c]
mov dword [ebp - 0x1878], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x1850], eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1860], eax
mov eax, 0x200
add esp, 0x24
mov dword [ebp - 0x185c], eax
mov dword [ebp - 0x184c], eax
mov dword [ebp - 0x1874], eax
mov dword [ebp - 0x1854], eax
mov dword [ebp - 0x1868], eax
mov dword [ebp - 0x1844], eax
lea eax, [ebp - 0x187c]
push eax
push SysReAllocString
push ebx
push esi
mov dword [ebp - 0x187c], 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 - 0x1864]
mov dword [ebp - 0x1820], eax
push dword [ebp - 0x186c]
mov dword [ebp - 0x1828], ebx
push eax
mov dword [ebp - 0x183c], esi
mov dword [ebp - 0x181c], ebx
mov dword [ebp - 0x1830], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x1850]
mov dword [ebp - 0x1814], eax
push str.HEAD
push eax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
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 0x10002a5f
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
push dword [ebp - 0x1820]
call esi
xor al, al
jmp 0x10002cfd
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 - 0x1830]
push eax
lea eax, [ebp - 0x183c]
push eax
lea eax, [ebp - 0x181c]
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 - 0x1850]
push 0x1001c6ec
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
mov dword [ebp - 0x1834], edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10002ae3
push edi
jmp 0x10002a46
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 - 0x181c], 1
jbe 0x10002add
push dword [ebp - 0x181c]
call fcn.1000aa9e
push dword [ebp - 0x181c]
mov dword [ebp - 0x1818], eax
push ebx
push eax
call fcn.1000cce0
add esp, 0x10
mov dword [ebp - 0x1810], ebx
lea eax, [ebp - 0x1828]
push eax
push dword [ebp - 0x181c]
push dword [ebp - 0x1818]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
inc dword [ebp - 0x1810]
cmp dword [ebp - 0x1810], 5
jge 0x10002b59
cmp dword [ebp - 0x1828], ebx
je 0x10002b28
cmp dword [ebp - 0x1828], 1
ja 0x10002b73
push dword [ebp - 0x1818]
call fcn.1000b8a1
pop ecx
jmp 0x10002add
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 0x181c]
jl 0x10002b8c
mov ecx, dword [ebp - 0x1824]
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jne 0x10002b62
cmp dword [ebp + 0x14], 3
jne 0x10002c8d
add eax, 0xffffffca
push eax
mov dword [ebp - 0x1810], eax
call fcn.1000aa9e
push dword [ebp - 0x1810]
mov edi, eax
mov eax, dword [ebp - 0x1818]
add eax, 0x36
push eax
push edi
call fcn.10013660
push 0x147e
push dword [ebp - 0x1810]
push edi
call fcn.10002887
add esp, 0x1c
xor ecx, ecx
cmp dword [ebp - 0x1810], ebx
jle 0x10002bff
xor eax, eax
lea edx, [ecx + edi]
mov dl, byte [edx + eax]
cmp dl, byte [eax + str.AAAAAAAAAAAA_]
jne 0x10002bf1
inc eax
cmp eax, 0xe
jl 0x10002bdd
cmp eax, 0xe
je 0x10002c02
inc ecx
cmp ecx, dword [ebp - 0x1810]
jl 0x10002bdb
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x10002a58
mov eax, dword [ebp - 0x182c]
lea edx, [eax + 1]
mov dword [ebp - 0x1824], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002c1a
sub eax, dword [ebp - 0x1824]
push 0x1e
pop edx
sub edx, eax
push edx
add ecx, edi
push ebx
push ecx
mov dword [ebp - 0x1824], ecx
call fcn.1000cce0
mov eax, dword [ebp - 0x182c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002c48
sub eax, ecx
push eax
push dword [ebp - 0x182c]
push dword [ebp - 0x1824]
call fcn.10013660
push 0x147e
push dword [ebp - 0x1810]
push edi
call fcn.10002887
push dword [ebp - 0x1810]
mov eax, dword [ebp - 0x1818]
add eax, 0x36
push edi
push eax
call fcn.10013660
add esp, 0x24
push ebx
push 1
push 4
push ebx
push 1
push 0xc0000000
push dword [ebp - 0x1838]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov edi, eax
lea eax, [ebp - 0x1840]
push eax
push dword [ebp - 0x181c]
mov dword [ebp - 0x1840], ebx
push dword [ebp - 0x1818]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1818]
call fcn.1000b8a1
pop ecx
push dword [ebp - 0x1834]
call esi
push dword [ebp - 0x1814]
call esi
push dword [ebp - 0x1820]
call esi
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ad41
leave
ret