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

Disassembly:
push 0x1c4
mov eax, 0x5ab8a7
call fcn.0056beab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x124], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
lea eax, [edi + 4]
lea esi, [edi + 8]
mov dword [ebp - 0x120], esp
mov dword [edi], vtable.GFE::HttpAccess::HttpResponseStream.0
mov dword [ebp - 0x130], eax
mov dword [eax], ebx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x120], esp
call fcn.0044c9ab
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov esi, dword [ebp - 0x128]
mov byte [ebp - 4], 4
lea eax, [esi + 0x1c]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
cmp dword [eax + 0x14], 8
jb 0x48972a
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x489749
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x120]
mov dword [edi + 0x18], eax
cmp eax, ebx
jne 0x4897ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpOpen_failed_with
push edi
mov byte [ebp - 4], 5
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 6
cmp esi, ebx
jle 0x4897a3
and esi, 0xffff
or esi, 0x80070000
push 0x137
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [ebp - 0xf8]
push eax
call fcn.00566ed2
push ebx
push 0x10000
push 0x48a078
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x489838
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpSetStatusCallback_failed_with
push edi
mov byte [ebp - 4], 7
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 8
cmp esi, ebx
jle 0x48982e
and esi, 0xffff
or esi, 0x80070000
push 0x146
jmp 0x4897a8
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x489863
push ebx
call fcn.0047efb8
test al, al
je 0x489863
lea ebx, [ebp - 0xf8]
call fcn.0048b438
push 0x6077b8
mov eax, ebx
jmp 0x4897c4
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x48]
mov ecx, esi
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
call fcn.0048899c
mov eax, dword [ebp - 0x124]
add esp, 0xc
cmp eax, ebx
je 0x4898c1
push ebx
call fcn.0047efb8
test al, al
jne 0x48984c
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4898cd
lea ecx, [ebp - 0x64]
mov eax, dword [edi + 0x18]
push ebx
push dword [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x4898f3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x12c]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x489957
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpConnect_failed_with
push edi
mov byte [ebp - 4], 0xb
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 0xc
cmp esi, ebx
jle 0x48994d
and esi, 0xffff
or esi, 0x80070000
push 0x16d
jmp 0x4897a8
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x48996f
push ebx
call fcn.0047efb8
test al, al
jne 0x48984c
cmp dword [ebp - 0x120], 2
jne 0x48997f
mov ecx, 0x800000
jmp 0x489981
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x48998d
lea eax, [ebp - 0x48]
mov edx, dword [edi + 0x1c]
push ecx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x120], edx
call fcn.00489662
push eax
push dword [ebp - 0x120]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x4899c4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x120]
mov ecx, eax
mov dword [edi + 0x20], eax
cmp ecx, ebx
jne 0x489a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpOpenRequest_failed_with
push edi
mov byte [ebp - 4], 0xd
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 0xe
cmp esi, ebx
jle 0x489a20
and esi, 0xffff
or esi, 0x80070000
push 0x188
jmp 0x4897a8
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x489a43
push eax
push 3
pop ebx
call fcn.00488bd9
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x489a5f
mov ecx, dword [edi + 0x20]
push eax
push 5
pop ebx
call fcn.00488bd9
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x489a7b
mov ecx, dword [edi + 0x20]
push eax
push 6
pop ebx
call fcn.00488bd9
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x489a97
mov ecx, dword [edi + 0x20]
push eax
push 7
pop ebx
call fcn.00488bd9
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x3c]
push ecx
push eax
call fcn.00488faa
mov eax, dword [ebp - 0x124]
pop ecx
pop ecx
cmp eax, ebx
je 0x489abe
push ebx
call fcn.0047efb8
test al, al
jne 0x48984c
mov ecx, dword [esi + 0x4c]
mov esi, dword [esi + 0x50]
cmp ecx, esi
jne 0x489ad0
mov dword [ebp - 0x120], ebx
jmp 0x489ada
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x120], eax
cmp ecx, esi
jne 0x489ae2
xor edx, edx
jmp 0x489ae6
mov edx, esi
sub edx, ecx
push ebx
push dword [ebp - 0x120]
mov eax, ecx
sub eax, esi
neg eax
push edx
sbb eax, eax
and eax, ecx
mov ecx, dword [edi + 0x20]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x489b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpSendRequest_failed_with
push edi
mov byte [ebp - 4], 0xf
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 0x10
cmp esi, ebx
jle 0x489b56
and esi, 0xffff
or esi, 0x80070000
push 0x1b7
jmp 0x4897a8
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x489b78
push ebx
call fcn.0047efb8
test al, al
jne 0x48984c
mov eax, dword [edi + 0x20]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x489bde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpReceiveResponse_failed_with
push edi
mov byte [ebp - 4], 0x11
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 0x12
cmp esi, ebx
jle 0x489bd4
and esi, 0xffff
or esi, 0x80070000
push 0x1c9
jmp 0x4897a8
push dword [edi + 0x20]
lea eax, [ebp - 0x11c]
push eax
call fcn.00488d79
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 0x13
call fcn.00403aba
mov esi, eax
push str.HTTP_response_headers:
push esi
mov byte [ebp - 4], 0x14
call fcn.0040635f
push esi
lea ecx, [ebp - 0x11c]
call fcn.00411d36
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x489c3a
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.0047feaf
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404589
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x13
call fcn.004027ed
and dword [ebp - 0x1c], edi
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 4], 0x16
push dword [ebp - 0x130]
lea eax, [ebp - 0x11c]
push eax
call fcn.0048927b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
call fcn.0048a75d
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x489cc3
mov edx, dword [eax]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x30], edx
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 0x34], edx
call fcn.0055da69
pop ecx
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x489cdc
push 0
call fcn.0047efb8
test al, al
jne 0x48984c
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404589
push ebx
lea esi, [ebp - 0x11c]
call fcn.00404589
push ebx
lea esi, [ebp - 0x48]
call fcn.00404589
push ebx
lea esi, [ebp - 0x64]
call fcn.00404589
mov eax, dword [ebp - 0x134]
call fcn.0056bf2e
ret 8