Function at 0x57b5c6
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eed6
mov eax, dword fs:[0]
push eax
mov eax, 0x10018
call fcn.00532310
mov eax, dword [0x5f1114]
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 edi, ecx
mov dword [ebp - 0x1001c], edi
mov dword [ebp - 4], 1
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 8]
cmovae edx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push edx
cmovae eax, dword [ebp + 8]
push eax
push str.makeGETRequest_http:___s_s
call fcn.0057ad19
xor ebx, ebx
lea eax, [ebp - 0x10010]
push 0x10000
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x10014], ebx
mov dword [ebp - 0x10018], ebx
call fcn.0054b1f0
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push 0x5ca0b8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
test ecx, ecx
jne 0x57b67d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpOpen._n
mov esi, eax
call fcn.0057aedc
pop ecx
pop ecx
jmp 0x57b7cc
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push 0x50
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
test ecx, ecx
jne 0x57b6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpConnect._n
jmp 0x57b66f
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push ebx
cmovae eax, dword [ebp + 0x20]
push ebx
push ebx
push ebx
push eax
push 0x5c5370
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x57b6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpOpenRequest._n
jmp 0x57b66f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x57b6fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push ebx
push str.Error__u_in_WinHttpSendRequest._n
jmp 0x57b66f
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, dword [ebp - 0x10014]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x10014]
push eax
cmovne ecx, edx
push ebx
mov dword [ebp - 0x10014], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x57b746
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.0057aedc
pop ecx
pop ecx
jmp 0x57b7ca
mov eax, dword [ebp - 0x10014]
xor edi, edi
test eax, eax
je 0x57b7c4
lea ecx, [ebp - 0x10018]
push ecx
push eax
lea eax, [ebp - 0x10010]
add eax, edi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x57b794
add edi, dword [ebp - 0x10014]
lea eax, [ebp - 0x10014]
and dword [ebp - 0x10014], esi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0x10014]
test eax, eax
jne 0x57b752
jmp 0x57b7a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__u_in_WinHttpReadData._n
call fcn.0057aedc
pop ecx
pop ecx
test edi, edi
je 0x57b7c4
push edi
mov edi, dword [ebp - 0x1001c]
lea eax, [ebp - 0x10010]
push eax
mov ecx, edi
call fcn.0040364e
jmp 0x57b7ca
mov edi, dword [ebp - 0x1001c]
xor ebx, ebx
cmp dword [edi + 0x14], 0x10
jb 0x57b7d4
mov edi, dword [edi]
push esi
push edi
push str.makeGETRequest_returned__s_with_error__d
call fcn.0057aedc
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x1001c], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10020], esp
push 0x5c4ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.makeGETRequest
call fcn.004036e4
mov dl, bl
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00572131
add esp, 0x48
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.00403a36
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00403a36
mov eax, esi
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.00531526
mov esp, ebp
pop ebp
ret