Function at 0x499006
Capabilities:
Check http status code
Get http content length

Disassembly:
push 0x3c
mov eax, 0x50a369
call fcn.004cc273
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x38]
xor ebx, ebx
push ebx
push 3
push dword [ebp + 0x24]
mov dword [eax], ebx
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 8]
call fcn.004996d1
test eax, eax
jne 0x4996c9
mov eax, dword [esi + 4]
mov dword [ebp - 0x40], eax
mov dword [ebp + 0x20], eax
mov dword [esi + 8], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x8440c000
mov bl, byte [ebp + 0x30]
mov edi, 0x84c0c000
push dword [ebp + 0x1c]
test bl, bl
mov dword [ebp - 0x48], 0x532114
cmove edi, eax
xor ecx, ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x20]
call fcn.00407175
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x499095
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00407092
push edi
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi + 8]
call fcn.0049972a
mov edi, eax
test edi, edi
je 0x4990ba
mov esi, dword [ebp + 0x20]
jmp 0x49969d
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 3
test bl, bl
je 0x499107
cmp byte [esi + 0x94], 0
je 0x499107
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push eax
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push dword [ebp + 0x18]
or dword [ebp + 0x30], 0x3380
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 0x24]
call fcn.00406bcb
mov ebx, dword [ebp + 0x34]
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebx], eax
jbe 0x499156
lea ecx, [ebp + 0x30]
call fcn.00406bcb
mov byte [ebp - 4], 5
lea eax, [ebp + 0x30]
push dword [ebx]
push str.Range:_bytes_u__r_n
push eax
call fcn.00407a35
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00407092
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 4
call fcn.004068bc
lea edx, [esi + 0x42]
xor ebx, ebx
cmp word [edx], bx
jbe 0x4991b3
lea ecx, [ebp + 0x18]
call fcn.004715b0
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 6
call fcn.00406bcb
mov byte [ebp - 4], 7
lea eax, [ebp + 0x30]
push dword [ebp + 0x18]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.00407a35
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00407092
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 6
call fcn.004068bc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004068bc
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.00406bcb
mov byte [ebp - 4], 8
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x499211
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x24]
call fcn.0040706a
push ecx
mov ecx, dword [esi + 0x8c]
lea edx, [ebp + 0x14]
call fcn.00470fc0
mov ebx, dword [ebp + 0x14]
pop ecx
mov dword [ebp + 0x10], ebx
cmp dword [ebx - 4], 1
jle 0x49920b
push dword [ebx - 0xc]
lea ecx, [ebp + 0x14]
call fcn.004543ef
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x10], ebx
mov eax, dword [ebx - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x49921c
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [ebp + 0x24]
xor ecx, ecx
mov esi, dword [esi + 4]
mov eax, dword [ebx - 0xc]
test eax, eax
mov edi, eax
cmove edi, ecx
test eax, eax
mov eax, dword [ebp - 0x10]
cmove ebx, ecx
push dword [eax + 0x64]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], cl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push edi
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x499270
mov ecx, esi
call fcn.004997df
mov edi, eax
test edi, edi
je 0x499270
xor eax, eax
jmp 0x49927c
xor eax, eax
mov edi, eax
cmp dword [esi + 0x30], eax
jne 0x49927c
mov edi, dword [esi + 0x2c]
push eax
lea ebx, [esi + 0x98]
mov dword [ebp - 0x28], 4
mov dword [ebx], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x49966a
xor eax, eax
push eax
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x18], ecx
je 0x499316
cmp dword [ebx], 0x130
je 0x499316
xor eax, eax
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
lea ebx, [esi + 0x52]
push ebx
push 0x4000000b
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x49930d
push 0x10
push eax
push ebx
call fcn.004cd4d0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea ebx, [esi + 0x98]
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x4993d8
cmp dword [ebx], 0xc8
jne 0x4993d8
xor ebx, ebx
mov dword [ebp + 0x30], ebx
mov esi, 0x410
mov byte [ebp - 4], 0xb
push esi
lea ecx, [ebp + 0x30]
call fcn.00489bf4
push ebx
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0x30]
push esi
push 1
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4993ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x499601
push esi
call fcn.004cbcfc
pop ecx
push dword [ebp + 8]
xor eax, eax
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x30], eax
call fcn.00489bf4
mov esi, dword [ebp + 0x30]
xor eax, eax
push eax
lea eax, [ebp + 8]
push eax
push esi
push 1
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4995fb
mov eax, dword [ebp + 8]
test eax, eax
je 0x4993c1
shr eax, 1
lea ecx, [ebx + 0x90]
push eax
push esi
call fcn.00407092
push esi
mov byte [ebp - 4], 8
call fcn.004cbcfc
pop ecx
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov dword [ebp + 0x30], edx
mov esi, ebx
jmp 0x4993da
xor edx, edx
lea ebx, [esi + 0x98]
mov eax, dword [ebx]
cmp eax, 0x193
ja 0x49954c
je 0x499623
sub eax, 0xc8
je 0x499531
sub eax, 6
je 0x499515
sub eax, 0x62
je 0x499615
sub eax, 0x61
jne 0x499569
mov edi, 0xe0000012
cmp edi, 0x2f0d
je 0x499580
cmp edi, 0x2f0c
je 0x499580
cmp edi, 0x2f06
je 0x499580
cmp edi, 0x2f05
je 0x499580
cmp edi, 0xe0000012
jne 0x499655
lea ecx, [ebp + 0x28]
call fcn.00406bcb
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 0x1c
push eax
push dword [ebx]
push dword [esi + 4]
call fcn.00499caf
mov esi, dword [ebx]
lea ecx, [ebp + 0x1c]
mov ebx, 0x197
cmp esi, ebx
sete byte [ebp - 0x30]
call fcn.00406bcb
cmp esi, ebx
mov byte [ebp - 4], 0x1d
mov esi, dword [ebp - 0x10]
jne 0x4994a0
lea eax, [ebp + 0x1c]
push eax
push dword [esi + 4]
call fcn.00499de6
lea ecx, [ebp - 0x1c]
call fcn.00406bcb
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1e
call fcn.00406bcb
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.00499d4b
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x18]
test al, al
je 0x49962a
call fcn.004068bc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1d
call fcn.004068bc
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.004068bc
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.004068bc
jmp 0x49921c
mov eax, dword [ebp + 0x34]
test ecx, ecx
jne 0x499523
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
jmp 0x499545
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x49941e
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x499545
cmp dword [eax], ecx
jae 0x49961c
mov dword [eax], edx
jmp 0x49941e
sub eax, 0x194
je 0x499663
sub eax, 3
je 0x499419
sub eax, 3
je 0x499663
test edi, edi
jne 0x49941e
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x499659
cmp byte [esi + 0x81], 0
je 0x4995d1
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x499672
or dword [ebp - 0x14], 0x3f05
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
je 0x499672
jmp 0x4995ee
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4995e4
push dword [esi + 4]
mov eax, dword [ecx]
push edi
push edx
call dword [eax + 0x28]
jmp 0x4995e6
mov eax, edx
test eax, eax
jne 0x499672
lea ecx, [ebp + 0x24]
call fcn.00409920
jmp 0x49921c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
mov byte [ebp - 4], 8
call fcn.004cbcfc
xor eax, eax
pop ecx
mov dword [ebp + 0x30], eax
jmp 0x499672
mov edi, 0xe0000013
jmp 0x499672
mov edi, 0xe0000010
jmp 0x499672
mov edi, 0xe0000016
jmp 0x499672
call fcn.004068bc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1d
call fcn.004068bc
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.004068bc
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.004068bc
jmp 0x499672
test edi, edi
jne 0x499672
mov esi, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], esi
jmp 0x499675
mov edi, 0xe0000018
jmp 0x499672
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [ebp + 0x20]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 4
call fcn.004068bc
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x24
call fcn.00499ed3
mov byte [ebp - 4], 1
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004068bc
push ebx
push esi
mov dword [ebp - 4], 0x25
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [ebp - 0x40], ebx
call fcn.004cc23c
ret 0x34