Function at 0x411120
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442393
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x1d], 0
cmp dword [ebp - 0x14], 0
je 0x411369
push 0
push 0x50
push str.map.baidu.com
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
push 0x4466c0
push 0x446f48
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x411369
push 0x20000000
push 0xffffffffffffffff
push str.Cache_Control:_max_age0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.Upgrade_Insecure_Requests:_1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_75.0.3770.142_Safari_537.36
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9_image_webp_image_apng___q0.8_application_signed_exchange_vb3
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.Accept_Language:_zh_CN_zh_q0.9
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x411369
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x411369
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x16
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x24]
shr eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ce14
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 0x16
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.004064c0
mov dword [ebp - 4], 0
push 0
push 0x446c7c
lea ecx, [ebp - 0x44]
call fcn.00411610
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [0x4466b8]
je 0x41135a
mov eax, dword [ebp - 0x48]
push eax
push 0x446c78
lea ecx, [ebp - 0x44]
call fcn.00411610
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x48]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 4
push ecx
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x44]
call fcn.00411650
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00406570
mov byte [ebp - 0x1d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
cmp dword [ebp - 0x1c], 0
je 0x411379
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x411389
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x14], 0
je 0x411399
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret