Function at 0x48ac70
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x56a8e0]
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 esi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp dword [eax + 0x10], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x6c], 0
je 0x48acdd
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x48], str.http_POST_requests_are_not_supported_yet
call fcn.00493bbb
push 0x543898
lea eax, [ebp - 0x1c]
push eax
call fcn.00493d65
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x48ad1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f8f
je 0x48ad1f
push str.send_http_request_failed_with_error
lea ecx, [ebp - 0x28]
call fcn.00406260
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.0048b030
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x48ad7c
cmp dword [esi + 0x28], 1
jle 0x48ad5f
push dword [ebp - 0x48]
mov ecx, esi
push edi
push ebx
call fcn.0048ac70
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.00493d56
mov esp, ebp
pop ebp
ret 0xc
push str.receive_http_request_failed_with_error
lea ecx, [ebp - 0x28]
call fcn.00406260
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 1
call fcn.0048b030
mov ecx, esi
call fcn.0048a430
mov ecx, eax
or ecx, edx
je 0x48ad93
mov ecx, dword [esi + 0x10]
push edx
push eax
call fcn.00489bb0
mov dword [edi], 0xc8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 4], 2
jmp 0x48adc0
lea eax, [ebp - 0x50]
push eax
push dword [esi]
mov dword [ebp - 0x50], 0
call ebx
test eax, eax
je 0x48af7d
lea eax, [ebp - 0x41]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00450810
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
mov byte [ebp - 4], 4
push edi
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x48af63
cmp dword [ebp - 0x4c], 0
je 0x48ae4f
push dword [ebp - 0x58]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.00488760
mov ecx, dword [esi + 0x20]
add esp, 0x14
push 0
push dword [ebp - 0x4c]
call fcn.00489bb0
mov byte [ebp - 4], 2
test edi, edi
je 0x48ae75
push edi
call fcn.00493278
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x50], 0
ja 0x48adc0
mov ecx, esi
call fcn.0048a3f0
mov edi, dword [ebp - 0x54]
mov dword [edi], eax
cmp eax, 0x197
jne 0x48af47
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x14], 0
je 0x48af47
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x48aed8
push str.downloading_failed_failed_with_error
lea ecx, [ebp - 0x40]
call fcn.00406260
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.0048b030
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x30], 8
lea ecx, [eax + 0x1c]
jb 0x48aee9
mov ecx, dword [ecx]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x48aef4
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [ebp - 0x54]
push 1
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x48af23
push str.downloading_failed_failed_with_error
lea ecx, [ebp - 0x40]
call fcn.00406260
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.0048b030
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push edi
push eax
mov ecx, esi
call fcn.0048ac70
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00483e50
lea ecx, [ebp - 0x34]
call fcn.00473570
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x64]
push eax
call fcn.00483e00
lea ecx, [ebp - 0x64]
call fcn.00473570
mov eax, dword [ebp - 0x58]
jmp 0x48ad41
push str.downloading_failed_failed_with_error
lea ecx, [ebp - 0x40]
call fcn.00406260
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 5
call fcn.0048b030
push str.http_request_query_failed_with_error
lea ecx, [ebp - 0x40]
call fcn.00406260
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.0048b030
int3