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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65bb32
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.00632760
mov eax, dword [0x67206c]
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 - 0x181c], 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 0x6698cc
mov dword [ebp - 0x1844], ebx
mov byte [ebx], 0
call fcn.00604620
push 0x1000
lea eax, [ebp - 0x1810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1834], 1
call fcn.00633cb0
add esp, 0xc
mov dword [ebp - 0x1818], 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 0x6695b4
mov dword [ebp - 0x1820], edi
mov dword [ebp - 0x1814], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, eax
mov dword [ebp - 0x1840], edx
test edx, edx
je 0x6246fa
mov ecx, dword [ebp - 0x181c]
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 0x6246fa
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00633cb0
mov edi, dword [ebp - 0x181c]
lea eax, [edi + 0x1000]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0063c207
lea eax, [edi + 0x1400]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00643ebf
add esp, 0x24
lea eax, [ebp - 0x810]
push esi
push esi
push esi
push 0x66a2e0
push eax
mov eax, dword [ebp - 0x1828]
push 0x66a2f4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x1820], edi
test edi, edi
je 0x6246fa
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 0x6246fa
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
test esi, esi
je 0x6246fa
push 0
lea eax, [ebp - 0x1814]
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 0x6246d5
mov eax, dword [ebp - 0x1814]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006317ca
add esp, 4
mov dword [ebp - 0x1818], eax
lea ecx, [ebp - 0x1814]
push 0
push ecx
push eax
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
push 0x66a2fc
push dword [ebp - 0x1818]
call fcn.00632eb7
xor edx, edx
add esp, 8
test eax, eax
mov ecx, 1
cmovne ecx, edx
mov dword [ebp - 0x1830], ecx
push dword [ebp - 0x1818]
call fcn.00631787
add esp, 4
mov dword [ebp - 0x181c], 1
mov dword [ebp - 0x1824], 0
test esi, esi
je 0x624916
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x1814]
mov dword [ebp - 0x1814], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x624916
mov eax, dword [ebp - 0x1814]
test eax, eax
je 0x624916
add eax, 0x10
mov dword [ebp - 0x181c], 0
push eax
call fcn.006317ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x1818], edi
test edi, edi
je 0x624916
mov eax, dword [ebp - 0x1814]
add eax, 0x10
push eax
push 0
push edi
call fcn.00633cb0
add esp, 0xc
lea eax, [ebp - 0x1824]
push eax
push dword [ebp - 0x1814]
push edi
push dword [ebp - 0x1820]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x62490d
mov ecx, dword [ebp - 0x1824]
mov dword [ebp - 0x182c], ecx
test ecx, ecx
je 0x62490d
cmp dword [ebp - 0x1830], 0
jne 0x6248a2
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.006317ca
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1818]
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 - 0x1824]
mov dword [ebp - 0x182c], ecx
cmp ecx, eax
ja 0x62488b
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x624883
mov eax, dword [ebx]
mov edi, dword [ebp - 0x1818]
jmp 0x6248bf
mov edi, dword [ebp - 0x1818]
push ecx
push edi
mov byte [ebp - 0x1838], 0
push dword [ebp - 0x1838]
jmp 0x6248e8
mov esi, dword [ebx + 0x14]
mov eax, esi
mov edx, dword [ebx + 0x10]
sub eax, edx
cmp ecx, eax
ja 0x6248d9
lea eax, [ecx + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x6248bf
mov eax, dword [ebx]
push ecx
lea esi, [eax + edx]
push edi
push esi
call fcn.00633730
mov eax, dword [ebp - 0x182c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x6248f0
push ecx
push edi
mov byte [ebp - 0x183c], 0
push dword [ebp - 0x183c]
push ecx
mov ecx, ebx
call fcn.00607690
push edi
call fcn.00631787
add esp, 4
cmp dword [ebp - 0x1814], 0
jbe 0x624916
mov edi, dword [ebp - 0x1820]
jmp 0x624730
push edi
call fcn.00631787
add esp, 4
mov eax, dword [ebp - 0x1820]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x624929
push eax
call esi
mov eax, dword [ebp - 0x1828]
test eax, eax
je 0x624936
push eax
call esi
mov eax, dword [ebp - 0x1840]
test eax, eax
je 0x624943
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.00631776
mov esp, ebp
pop ebp
ret 4