Function at 0x44d2f0
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 0x14], edi
je 0x44d354
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x44d354
mov esi, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x44d38f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpReceiveResponse_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpReceiveResponse_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
test ebx, ebx
mov esi, 2
je 0x44d385
mov eax, dword [ebx]
test eax, eax
je 0x44d385
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebx]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20000013
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x44d3db
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpQueryHeaders_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpQueryHeaders_Error___d__n
jmp 0x44d34a
mov eax, dword [esp + 0xc]
cmp eax, 0xc8
je 0x44d43d
push eax
push str._HTTP_STATUS_Error___d__n
call fcn.00401010
mov ecx, dword [esp + 0x14]
push ecx
push str.HTTP_STATUS_Error___d__n
push 2
call fcn.00448d80
add esp, 0x14
cmp dword [esp + 0xc], 0x197
jne 0x44d427
mov eax, esi
call fcn.0044d840
test eax, eax
je 0x44d427
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44d427
mov dword [eax], 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44d354
mov edx, dword [esp + 0xc]
mov dword [eax], edx
jmp 0x44d354
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20000005
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x44d481
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpQueryHeaders_CONTENT_LENGTH_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpQueryHeaders_CONTENT_LENGTH_Error___d__n
jmp 0x44d34a
mov eax, dword [esp + 8]
add eax, 1
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx], eax
jne 0x44d4c1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._GlobalAllocPtr_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.GlobalAllocPtr_Error___d__n
jmp 0x44d34a
mov ecx, dword [esp + 8]
add ecx, 1
push ecx
push 0
push eax
call fcn.0046e670
mov eax, dword [esp + 0x14]
mov esi, dword [ebx]
add esp, 0xc
test eax, eax
jbe 0x44d50a
mov edi, edi
lea edx, [esp + 0x14]
push edx
sub eax, edi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x44d540
mov eax, dword [esp + 0x14]
add esi, eax
add edi, eax
mov eax, dword [esp + 8]
cmp edi, eax
jb 0x44d4e0
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov byte [eax + edx], 0
mov eax, dword [esp + 8]
push eax
push str.____CWinHttp::Receive_DATA___dbyte__n
mov dword [ecx], eax
call fcn.00401010
mov eax, dword [ecx]
push eax
push str.CWinHttp::Receive_DATA___dbyte__n
push 0
call fcn.00448d80
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpReadData_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpReadData_Error___d__n
jmp 0x44d34a