Function at 0x4037a0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [eax]
push ebx
push esi
xor ebx, ebx
push ebx
push 3
push dword [ebp + 0x1c]
mov esi, ecx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, esi
call fcn.00403c19
cmp eax, ebx
jne 0x403c13
cmp byte [ebp + 0x28], bl
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x1c], 0x8440c000
je 0x4037e9
mov dword [ebp + 0x1c], 0x84c0c000
cmp byte [ebp + 0x24], bl
je 0x4037f2
or byte [ebp + 0x1e], 0x20
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push edi
sub eax, 0x10
mov dword [ebp - 0x1c], 0x430824
mov dword [ebp - 0x18], ebx
call fcn.00401c33
mov edi, eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add edi, 0x10
cmp ecx, ebx
mov dword [ebp - 4], edi
je 0x40382c
push ecx
push eax
lea eax, [ebp - 4]
push eax
call fcn.004026e5
mov edi, dword [ebp - 4]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x1c]
push eax
push 0x43075e
push str.HTTP_1.0
push edi
push dword [ebp + 0xc]
mov eax, esi
push dword [esi + 0x18]
call fcn.00403c70
cmp eax, ebx
je 0x403857
mov dword [ebp + 0x28], eax
jmp 0x403bf4
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [0x438af8]
mov edi, 0x438af8
mov ecx, edi
mov dword [ebp - 8], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x2c]
cmp dword [eax], ebx
jbe 0x4038ba
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x2c]
push dword [eax]
lea eax, [ebp + 0x28]
push str.Range:_bytes_u__r_n
push eax
call fcn.004044d4
mov edi, dword [ebp + 0x28]
add esp, 0xc
push dword [edi - 0xc]
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.004026e5
lea eax, [edi - 0x10]
call fcn.0040147d
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4038cb
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404612
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x4038d6
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx - 0xc]
push ebx
mov eax, ecx
neg eax
push ebx
sbb eax, eax
and eax, edx
push ecx
push eax
push dword [esi + 0x14]
mov eax, esi
call fcn.00403cca
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 4
call edi
test eax, eax
je 0x403b5a
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x24]
push eax
push 0x20000005
push dword [esi + 0x14]
mov dword [ebp + 0x24], ebx
call edi
test eax, eax
jne 0x40393f
mov dword [ebp + 0x24], eax
jmp 0x403942
mov eax, dword [ebp + 0x24]
cmp byte [esi + 0x64], bl
je 0x403980
cmp dword [ebp + 0x1c], 0x130
je 0x403980
push ebx
lea ecx, [ebp + 0xc]
push ecx
lea eax, [esi + 0x54]
push eax
push 0x4000000b
push dword [esi + 0x14]
mov dword [ebp + 0xc], 0x10
call edi
test eax, eax
jne 0x40397d
push 0x10
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.0042e270
add esp, 0xc
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x1c]
mov ecx, 0x193
cmp edx, ecx
ja 0x403af1
je 0x403b77
mov ecx, edx
sub ecx, 0xc8
je 0x403ad5
sub ecx, 6
je 0x403abc
sub ecx, 0x62
je 0x403b65
sub ecx, 0x61
jne 0x403b11
mov dword [ebp + 0x28], 0xe0000012
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x28]
cmp eax, 0x2f0d
je 0x403b20
cmp eax, 0x2f0c
je 0x403b20
cmp eax, 0x2f06
je 0x403b20
cmp eax, 0x2f05
je 0x403b20
cmp eax, 0xe0000012
jne 0x403bb4
lea edi, [esi + 4]
push 7
mov dword [ebp + 0x28], edi
call fcn.00404719
push 5
mov eax, edi
call fcn.00404679
mov eax, dword [0x438af8]
mov edi, 0x438af8
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x1c]
push dword [esi + 0x14]
push esi
call fcn.0040437e
cmp dword [ebp + 0x1c], 0x197
lea edi, [ebp + 8]
sete al
lea ebx, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0x14]
call fcn.004043ff
test al, al
push 4
je 0x403b80
mov eax, dword [ebp + 0x28]
call fcn.00404679
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040147d
xor ebx, ebx
jmp 0x4038d6
cmp eax, ebx
je 0x4039c6
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
jmp 0x4039d0
cmp eax, ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jbe 0x403ae9
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], eax
jae 0x403b6e
mov eax, dword [ebp + 0x2c]
jmp 0x4039ce
mov ecx, edx
sub ecx, 0x194
je 0x403bcd
sub ecx, 3
je 0x4039bf
sub ecx, 3
je 0x403bcd
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x4039d0
lea edi, [esi + 4]
push 6
call fcn.00404719
push 5
mov eax, edi
call fcn.00404679
push dword [ebp + 0x28]
mov eax, edi
push dword [esi + 0x14]
call fcn.004046f6
test eax, eax
push 4
jne 0x403bc0
mov eax, edi
call fcn.00404679
lea eax, [ebp + 0x18]
call fcn.00401927
jmp 0x4038d6
push esi
call fcn.00404450
mov dword [ebp + 0x28], eax
jmp 0x403bde
mov dword [ebp + 0x28], 0xe0000013
jmp 0x403bde
mov dword [ebp + 0x28], 0xe0000010
jmp 0x403bde
mov dword [ebp + 0x28], 0xe0000016
jmp 0x403bd4
lea eax, [esi + 4]
call fcn.00404679
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040147d
mov dword [ebp + 0x28], 0xe0000012
xor ebx, ebx
jmp 0x403bde
cmp eax, ebx
jne 0x403b60
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
jmp 0x403b60
lea eax, [esi + 4]
call fcn.00404679
mov eax, dword [ebp + 0x28]
jmp 0x403b60
mov dword [ebp + 0x28], 0xe0000018
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.0040147d
lea edi, [ebp - 0xc]
call fcn.00403da7
mov edi, dword [ebp - 4]
lea eax, [edi - 0x10]
call fcn.0040147d
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x28]
pop edi
pop esi
pop ebx
leave
ret 0x2c