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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8332
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.1008c5b0
mov eax, dword [0x101120a8]
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
mov dword [ebp - 0x1820], ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1834], 0
push 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push 0x100eea3a
mov dword [ebp - 0x1844], ebx
mov byte [ebx], 0
call fcn.10011e40
push 0x1000
lea eax, [ebp - 0x1810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1834], 1
call fcn.1008da10
add esp, 0xc
mov dword [ebp - 0x181c], 0
xor esi, esi
mov dword [ebp - 0x1830], 1
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1828], eax
push esi
push esi
push esi
push esi
push 0x100ee7b8
mov dword [ebp - 0x1824], edi
mov dword [ebp - 0x1818], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, eax
mov dword [ebp - 0x1840], edx
test edx, edx
je 0x100698ca
mov ecx, dword [ebp - 0x1820]
push esi
movzx eax, word [ecx + 0x1800]
push eax
lea eax, [ecx + 0x400]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1828], eax
test eax, eax
je 0x100698ca
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.1008da10
mov edi, dword [ebp - 0x1820]
lea eax, [edi + 0x1000]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.100964eb
lea eax, [edi + 0x1400]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.100965e0
add esp, 0x24
lea eax, [ebp - 0x810]
push esi
push esi
push esi
push 0x100f1634
push eax
mov eax, dword [ebp - 0x1828]
push 0x100f1648
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x1824], edi
test edi, edi
je 0x100698ca
push esi
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
test esi, esi
je 0x100698ca
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
test esi, esi
je 0x100698ca
push 0
lea eax, [ebp - 0x1818]
push eax
push 0
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100698a5
mov eax, dword [ebp - 0x1818]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008bff2
add esp, 4
mov dword [ebp - 0x181c], eax
lea ecx, [ebp - 0x1818]
push 0
push ecx
push eax
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
push str.charsetgbk
push dword [ebp - 0x181c]
call fcn.1008e896
xor edx, edx
add esp, 8
test eax, eax
mov ecx, 1
cmovne ecx, edx
mov dword [ebp - 0x1830], ecx
push dword [ebp - 0x181c]
call fcn.1008c032
add esp, 4
mov dword [ebp - 0x1820], 1
mov dword [ebp - 0x1814], 0
test esi, esi
je 0x10069ae6
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x1818]
mov dword [ebp - 0x1818], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10069ae6
mov eax, dword [ebp - 0x1818]
test eax, eax
je 0x10069ae6
add eax, 0x10
mov dword [ebp - 0x1820], 0
push eax
call fcn.1008bff2
mov edi, eax
add esp, 4
mov dword [ebp - 0x181c], edi
test edi, edi
je 0x10069ae6
mov eax, dword [ebp - 0x1818]
add eax, 0x10
push eax
push 0
push edi
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x1814]
push eax
push dword [ebp - 0x1818]
push edi
push dword [ebp - 0x1824]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10069add
mov ecx, dword [ebp - 0x1814]
mov dword [ebp - 0x182c], ecx
test ecx, ecx
je 0x10069add
cmp dword [ebp - 0x1830], 0
jne 0x10069a72
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008bff2
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x181c]
mov dword [esi], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1810]
push eax
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebx + 0x14]
mov eax, esi
mov edx, dword [ebx + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x1814]
mov dword [ebp - 0x182c], ecx
cmp ecx, eax
ja 0x10069a5b
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x10069a53
mov eax, dword [ebx]
mov edi, dword [ebp - 0x181c]
jmp 0x10069a8f
mov edi, dword [ebp - 0x181c]
push ecx
push edi
mov byte [ebp - 0x1838], 0
push dword [ebp - 0x1838]
jmp 0x10069ab8
mov esi, dword [ebx + 0x14]
mov eax, esi
mov edx, dword [ebx + 0x10]
sub eax, edx
cmp ecx, eax
ja 0x10069aa9
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x10069a8f
mov eax, dword [ebx]
push ecx
lea esi, [eax + edx]
push edi
push esi
call fcn.1008e280
mov eax, dword [ebp - 0x182c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x10069ac0
push ecx
push edi
mov byte [ebp - 0x183c], 0
push dword [ebp - 0x183c]
push ecx
mov ecx, ebx
call fcn.10012b50
push edi
call fcn.1008c032
add esp, 4
cmp dword [ebp - 0x1818], 0
jbe 0x10069ae6
mov edi, dword [ebp - 0x1824]
jmp 0x10069900
push edi
call fcn.1008c032
add esp, 4
mov eax, dword [ebp - 0x1824]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10069af9
push eax
call esi
mov eax, dword [ebp - 0x1828]
test eax, eax
je 0x10069b06
push eax
call esi
mov eax, dword [ebp - 0x1840]
test eax, eax
je 0x10069b13
push eax
call esi
mov eax, ebx
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.1008bffe
mov esp, ebp
pop ebp
ret 4