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

Disassembly:
push 0x3c
mov eax, 0x443a25
call fcn.004420ed
mov edi, ecx
mov dword [ebp - 0x10], edi
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.0040bb54
test eax, eax
jne 0x40bb4c
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x8440c000
cmp byte [ebp + 0x30], bl
mov esi, 0x84c0c000
mov dword [ebp - 0x48], 0x44c98c
cmove esi, eax
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401706
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x40b4db
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004015d8
mov ebx, dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push ebx
push dword [ebp + 0x10]
mov ecx, edi
push dword [edi + 8]
call fcn.0040bbad
mov esi, eax
test esi, esi
jne 0x40bb3a
mov eax, dword [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
cmp byte [ebp + 0x30], 0
je 0x40b547
cmp byte [edi + 0x94], 0
je 0x40b547
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push ecx
lea ecx, [ebp + 0x30]
push ecx
push 0x1f
push eax
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 [edi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call fcn.0040268c
push eax
lea ecx, [ebp + 0x24]
call fcn.004024c1
mov esi, dword [ebp + 0x34]
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [esi], eax
jbe 0x40b5a4
call fcn.0040268c
push eax
lea ecx, [ebp + 0x30]
call fcn.004024c1
mov byte [ebp - 4], 4
lea eax, [ebp + 0x30]
push dword [esi]
push str.Range:_bytes_u__r_n
push eax
call fcn.00404020
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004015d8
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.00401759
xor eax, eax
lea edx, [edi + 0x42]
cmp word [edx], ax
jbe 0x40b606
lea ecx, [ebp + 0x18]
call fcn.004046ae
mov byte [ebp - 4], 5
call fcn.0040268c
push eax
lea ecx, [ebp + 0x30]
call fcn.004024c1
mov byte [ebp - 4], 6
lea eax, [ebp + 0x30]
push dword [ebp + 0x18]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.00404020
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004015d8
lea ecx, [esi - 0x10]
call fcn.00401759
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0040268c
push eax
lea ecx, [ebp + 0x20]
call fcn.004024c1
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x40b66d
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x24]
call fcn.0040145f
mov ecx, dword [edi + 0x8c]
lea edx, [ebp + 0x20]
push 0xfde9
call fcn.00404318
mov edi, dword [ebp + 0x20]
pop ecx
cmp dword [edi - 4], 1
jle 0x40b662
push dword [edi - 0xc]
lea ecx, [ebp + 0x20]
call fcn.0040490a
mov edi, dword [ebp + 0x20]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jmp 0x40b670
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40b67e
mov eax, dword [ecx]
call dword [eax]
lea eax, [esi + 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
xor esi, esi
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov edx, ecx
cmove edx, esi
mov dword [ebp + 0x30], edx
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x64]
mov esi, dword [eax + 4]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], dl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x30]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x40b6e8
mov ecx, esi
call fcn.0040bc62
mov dword [ebp + 0x30], eax
test eax, eax
je 0x40b6e8
xor ecx, ecx
jmp 0x40b6fa
xor ecx, ecx
cmp dword [esi + 0x30], ecx
je 0x40b6f4
mov dword [ebp + 0x30], ecx
jmp 0x40b6fa
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x30], eax
push ecx
lea eax, [esi + 0x98]
mov dword [ebp - 0x28], 4
mov dword [eax], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40bb17
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
lea edx, [esi + 0x98]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x18], ecx
je 0x40b79c
cmp dword [edx], 0x130
je 0x40b79c
push 0
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 0x10
push ecx
lea eax, [esi + 0x52]
push eax
push 0x4000000b
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40b793
push 0x10
push eax
lea eax, [esi + 0x52]
push eax
call fcn.0042fde0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea edx, [esi + 0x98]
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x40b859
cmp dword [edx], 0xc8
jne 0x40b859
and dword [ebp + 0x14], 0
mov esi, 0x410
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp + 0x14]
call fcn.00403c85
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40b832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40bab8
push esi
call fcn.0042e92f
and dword [ebp + 0x14], 0
pop ecx
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
call fcn.00403c85
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40bab2
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b84b
mov ecx, dword [ebp - 0x10]
shr eax, 1
push eax
push esi
lea ecx, [ecx + 0x90]
call fcn.004015d8
push esi
mov byte [ebp - 4], 7
call fcn.0042e92f
pop ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, 0x193
mov eax, dword [eax]
cmp eax, edx
ja 0x40ba02
je 0x40bad2
sub eax, 0xc8
je 0x40b9e2
sub eax, 6
je 0x40b9bc
sub eax, 0x62
je 0x40bac4
sub eax, 0x61
jne 0x40ba1f
mov esi, 0xe0000012
mov dword [ebp + 0x30], esi
xor edx, edx
cmp esi, 0x2f0d
je 0x40ba3b
cmp esi, 0x2f0c
je 0x40ba3b
cmp esi, 0x2f06
je 0x40ba3b
cmp esi, 0x2f05
je 0x40ba3b
cmp esi, 0xe0000012
jne 0x40bb04
call fcn.0040268c
push eax
lea ecx, [ebp + 0x28]
call fcn.004024c1
mov esi, dword [ebp - 0x2c]
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 9
push dword [esi]
push dword [eax + 4]
call fcn.0040c127
mov esi, dword [esi]
cmp esi, 0x197
sete byte [ebp - 0x30]
call fcn.0040268c
push eax
lea ecx, [ebp + 0x1c]
call fcn.004024c1
mov byte [ebp - 4], 0xa
cmp esi, 0x197
jne 0x40b938
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call fcn.0040c263
call fcn.0040268c
push eax
lea ecx, [ebp - 0x18]
call fcn.004024c1
mov byte [ebp - 4], 0xb
call fcn.0040268c
push eax
lea ecx, [ebp - 0x14]
call fcn.004024c1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [eax + 4]
call fcn.0040c1d8
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
test al, al
je 0x40bad9
call fcn.00401759
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401759
jmp 0x40b687
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x30]
test ecx, ecx
jne 0x40b9d4
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], edx
jmp 0x40b8a1
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x40b89f
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x40b9f6
cmp dword [eax], ecx
jae 0x40bacb
mov esi, dword [ebp + 0x30]
xor edx, edx
mov dword [eax], edx
jmp 0x40b8a1
sub eax, 0x194
je 0x40bb10
sub eax, 3
je 0x40b897
sub eax, 3
je 0x40bb10
mov esi, dword [ebp + 0x30]
xor edx, edx
test esi, esi
jne 0x40b8a1
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x40bb08
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x81], 0
je 0x40ba94
mov eax, dword [eax + 4]
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x14], eax
push ecx
push 0x1f
push eax
mov dword [ebp + 0x30], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x40bb1f
or dword [ebp + 0x10], 0x3f05
lea eax, [ebp + 0x10]
push 4
push eax
push 0x1f
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
je 0x40bb1f
jmp 0x40baa5
push dword [eax + 4]
push esi
push ecx
lea ecx, [eax + 0xc]
call fcn.0040c522
test eax, eax
jne 0x40bb1f
lea ecx, [ebp + 0x24]
call fcn.0040292e
jmp 0x40b687
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp + 0x30], eax
call fcn.0042e92f
pop ecx
jmp 0x40baff
mov esi, 0xe0000013
jmp 0x40bb1f
mov esi, 0xe0000010
jmp 0x40bb1f
mov esi, 0xe0000016
jmp 0x40bb1f
call fcn.00401759
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov esi, dword [ebp + 0x30]
jmp 0x40bb1f
test esi, esi
jne 0x40bb1f
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edx
jmp 0x40bb1f
mov esi, 0xe0000018
jmp 0x40bb1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.00401759
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.00401759
lea ecx, [ebp - 0x38]
call fcn.0040c356
lea ecx, [ebx - 0x10]
call fcn.00401759
lea ecx, [ebp - 0x40]
call fcn.0040c337
mov eax, esi
call fcn.004420b6
ret 0x34