Function at 0x252ffc1
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
sub esp, 0x28
mov eax, dword [0x6400104]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
xor esi, esi
push esi
push esi
push esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
push esi
push dword [0x640438c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x253001c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x253018c
push esi
push esi
push dword [esp + 0x44]
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x2530040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x2530185
cmp dword [esp + 0x48], esi
mov edx, 0x800100
mov eax, 0x100
cmovne eax, edx
push eax
push edi
push esi
push esi
push dword [esp + 0x50]
push dword [esp + 0x58]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x2530168
push esi
push dword [esp + 0x5c]
push dword [esp + 0x60]
push dword [esp + 0x1c]
push 0xffffffffffffffff
push dword [esp + 0x28]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x2530168
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x2530168
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], esi
push eax
push esi
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x2530168
cmp dword [esp + 0x2c], 0xc8
je 0x25300de
xor esi, esi
inc esi
jmp 0x2530170
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
push ebx
push esi
push 0x20000005
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x2530168
cmp dword [ebx], esi
je 0x2530170
push dword [ebx]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
call fcn.0258532a
mov ebp, dword [esp + 0x1c]
mov dword [ebp], eax
push dword [ebx]
push esi
push eax
call fcn.025acd10
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x253015c
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x2c]
mov eax, dword [ebp]
add eax, dword [esp + 0x2c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x253015c
mov eax, dword [esp + 0x30]
add dword [esp + 0x24], eax
cmp dword [esp + 0x28], esi
jne 0x2530128
mov ebp, dword [esp + 0x1c]
jmp 0x2530170
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x253017b
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0247de5b
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.0247de5b
mov ecx, dword [esp + 0x44]
lea ecx, [ecx - 0x10]
call fcn.0247de5b
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.02585cf8
add esp, 0x28
ret