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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6841d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x780784]
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 eax, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push str.WinHTTP_get_1.0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x29], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push ecx
push 0x54
push eax
mov dword [ebp - 0x3c], 0xaa0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x57e760
push edi
push 0x1bb
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x57e760
push 0x800000
push edi
push edi
push edi
push ebx
push 0x6ed51c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x57e760
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push str.Content_type:_application_json__charsetutf_8_r_n
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x57e760
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x57e766
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 4], 0
nop dword [eax + eax]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push edi
call ebx
test eax, eax
je 0x57e732
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x57e636
inc eax
push eax
call fcn.0060c9a0
mov esi, eax
add esp, 4
test esi, esi
je 0x57e6ed
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push 0
push esi
call fcn.0060f310
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x57e6ac
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57e5f1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00475240
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57e610
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x44]
push esi
call fcn.004753c0
push esi
call fcn.0060c9a9
add esp, 4
cmp dword [ebp - 0x30], 0
ja 0x57e590
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x57e66a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57e660
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e76d
push edx
push ecx
call fcn.0060c992
add esp, 8
mov bl, byte [ebp - 0x29]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x57e67a
push edi
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x57e684
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x57e68e
push eax
call esi
mov al, bl
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.0060cdfa
mov esp, ebp
pop ebp
ret
push esi
call fcn.0060c9a9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57e66d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57e6e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e76d
push edx
push ecx
call fcn.0060c992
add esp, 8
jmp 0x57e66d
push 0
call fcn.0060c9a9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57e66d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57e723
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e76d
push edx
push ecx
call fcn.0060c992
add esp, 8
jmp 0x57e66d
mov edx, dword [ebp - 0x14]
xor bl, bl
cmp edx, 0x10
jb 0x57e66d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57e723
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e76d
jmp 0x57e723
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x57e66d
call fcn.0061883f
int3