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

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x413040]
xor eax, ebp
xor ecx, ecx
cmp dword [ebx + 0x74], ecx
push esi
mov dword [ebp + 0x798], eax
push edi
je 0x4098bb
cmp dword [ebx + 0x80], ecx
je 0x4098bb
mov esi, dword [0x413050]
mov eax, dword [ebx + 0x40]
cmp eax, ecx
mov edi, esi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
je 0x4096a8
push dword [eax + 0x10]
lea eax, [ebp - 0x6c]
call fcn.00401d9c
mov eax, dword [ebx + 0x40]
push dword [eax + 0x14]
lea eax, [ebp - 0x70]
call fcn.00401d9c
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000013
push dword [ebx + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4096dd
add esi, 0xfffffff4
cmp esi, dword [0x413054]
je 0x4096d5
push esi
call fcn.004018e7
lea eax, [edi - 0xc]
jmp 0x4098ad
mov eax, dword [ebp - 0x74]
cmp eax, 0x197
jne 0x409721
cmp dword [ebx + 0xa0], 0
jne 0x409796
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x409710
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x6c]
push 0x2b
push dword [ebx + 0x74]
call edi
mov eax, dword [esi - 8]
test eax, eax
je 0x409761
lea eax, [eax + eax + 2]
push eax
push esi
push 0x2c
jmp 0x40975c
cmp eax, 0x191
jne 0x409796
cmp dword [ebx + 0xa0], 0
jne 0x409796
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x40974d
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x6c]
push 0x1c
push dword [ebx + 0x74]
call edi
mov eax, dword [esi - 8]
test eax, eax
je 0x409761
lea eax, [eax + eax + 2]
push eax
push esi
push 0x1d
push dword [ebx + 0x74]
call edi
xor edi, edi
inc edi
add esi, 0xfffffff4
cmp esi, dword [0x413054]
mov dword [ebx + 0xa0], edi
je 0x40977b
push esi
call fcn.004018e7
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40978f
push eax
call fcn.004018e7
mov eax, edi
jmp 0x4098bd
cmp eax, 0x190
mov dword [ebx + 0x34], eax
jae 0x4096c4
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000005
push dword [ebx + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4096c4
mov eax, dword [ebp - 0x74]
and word [ebp - 0x68], 0
mov dword [ebx + 0x38], eax
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x66]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebx + 0x74]
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x409805
lea eax, [esi - 0xc]
jmp 0x409899
lea eax, [ebp - 0x68]
push eax
lea edi, [ebp - 0x7c]
lea esi, [ebx + 0x3c]
call fcn.004069d4
call fcn.00403278
mov edi, eax
mov eax, esi
call fcn.004019e8
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x409836
push eax
call fcn.004018e7
push str.text
xor ecx, ecx
call fcn.00403292
test eax, eax
jge 0x409893
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x409889
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x38]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x409870
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x409884
push eax
call fcn.004018e7
push 2
pop eax
jmp 0x4098bd
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x38]
cmp ecx, eax
je 0x40985c
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4098a7
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4098bb
push eax
call fcn.004018e7
xor eax, eax
mov ecx, dword [ebp + 0x798]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f143
add ebp, 0x79c
leave
ret