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

Disassembly:
push 0x1c4
mov eax, 0x56b359
call fcn.00523c97
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.00456178
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 0x49bd7e
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 0x49bd9d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x120]
mov dword [edi + 0x18], eax
cmp eax, ebx
jne 0x49be1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpOpen_failed_with
push edi
mov byte [ebp - 4], 5
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 6
cmp esi, ebx
jle 0x49bdf7
and esi, 0xffff
or esi, 0x80070000
push 0x137
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0049af2e
push 0x5c9a00
lea eax, [ebp - 0xf8]
push eax
call fcn.0051ed55
push ebx
push 0x10000
push 0x49c6d0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x49be8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpSetStatusCallback_failed_with
push edi
mov byte [ebp - 4], 7
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 8
cmp esi, ebx
jle 0x49be82
and esi, 0xffff
or esi, 0x80070000
push 0x146
jmp 0x49bdfc
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x49beb7
push ebx
call fcn.00491c88
test al, al
je 0x49beb7
lea ebx, [ebp - 0xf8]
call fcn.0049d9c5
push 0x5c98f0
mov eax, ebx
jmp 0x49be18
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.0049aff0
mov eax, dword [ebp - 0x124]
add esp, 0xc
cmp eax, ebx
je 0x49bf15
push ebx
call fcn.00491c88
test al, al
jne 0x49bea0
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x49bf21
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 0x49bf47
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x12c]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x49bfab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpConnect_failed_with
push edi
mov byte [ebp - 4], 0xb
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 0xc
cmp esi, ebx
jle 0x49bfa1
and esi, 0xffff
or esi, 0x80070000
push 0x16d
jmp 0x49bdfc
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x49bfc3
push ebx
call fcn.00491c88
test al, al
jne 0x49bea0
cmp dword [ebp - 0x120], 2
jne 0x49bfd3
mov ecx, 0x800000
jmp 0x49bfd5
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x49bfe1
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.0049bcb6
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 0x49c018
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 0x49c07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpOpenRequest_failed_with
push edi
mov byte [ebp - 4], 0xd
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 0xe
cmp esi, ebx
jle 0x49c074
and esi, 0xffff
or esi, 0x80070000
push 0x188
jmp 0x49bdfc
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x49c097
push eax
push 3
pop ebx
call fcn.0049b22d
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x49c0b3
mov ecx, dword [edi + 0x20]
push eax
push 5
pop ebx
call fcn.0049b22d
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x49c0cf
mov ecx, dword [edi + 0x20]
push eax
push 6
pop ebx
call fcn.0049b22d
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x49c0eb
mov ecx, dword [edi + 0x20]
push eax
push 7
pop ebx
call fcn.0049b22d
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.0049b5fe
mov eax, dword [ebp - 0x124]
pop ecx
pop ecx
cmp eax, ebx
je 0x49c112
push ebx
call fcn.00491c88
test al, al
jne 0x49bea0
mov ecx, dword [esi + 0x4c]
mov esi, dword [esi + 0x50]
cmp ecx, esi
jne 0x49c124
mov dword [ebp - 0x120], ebx
jmp 0x49c12e
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x120], eax
cmp ecx, esi
jne 0x49c136
xor edx, edx
jmp 0x49c13a
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 0x49c1b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpSendRequest_failed_with
push edi
mov byte [ebp - 4], 0xf
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 0x10
cmp esi, ebx
jle 0x49c1aa
and esi, 0xffff
or esi, 0x80070000
push 0x1b7
jmp 0x49bdfc
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x49c1cc
push ebx
call fcn.00491c88
test al, al
jne 0x49bea0
mov eax, dword [edi + 0x20]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x49c232
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpReceiveResponse_failed_with
push edi
mov byte [ebp - 4], 0x11
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 0x12
cmp esi, ebx
jle 0x49c228
and esi, 0xffff
or esi, 0x80070000
push 0x1c9
jmp 0x49bdfc
push dword [edi + 0x20]
lea eax, [ebp - 0x11c]
push eax
call fcn.0049b3cd
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 0x13
call fcn.004036c8
mov esi, eax
push str.HTTP_response_headers:
push esi
mov byte [ebp - 4], 0x14
call fcn.00405d7d
push esi
lea ecx, [ebp - 0x11c]
call fcn.0041193b
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49c28e
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.00492b4d
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404145
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x13
call fcn.00402669
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.0049b8cf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
call fcn.0049ccb2
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x49c317
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.00515a19
pop ecx
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x49c330
push 0
call fcn.00491c88
test al, al
jne 0x49bea0
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404145
push ebx
lea esi, [ebp - 0x11c]
call fcn.00404145
push ebx
lea esi, [ebp - 0x48]
call fcn.00404145
push ebx
lea esi, [ebp - 0x64]
call fcn.00404145
mov eax, dword [ebp - 0x134]
call fcn.00523d1a
ret 8