Function at 0x402d8e
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [0x429570]
mov edi, 0x429570
mov ecx, edi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x429570]
add ebx, 0x10
mov ecx, edi
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
jbe 0x402ded
push eax
lea eax, [ebp - 0x10]
push str.Range:_bytes_u__r_n
push eax
call fcn.0040382d
mov ebx, dword [ebp - 0x10]
add esp, 0xc
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00401cb8
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x402dfe
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403a66
cmp dword [ebp + 0xc], 4
lea eax, [ebp - 4]
push edi
push eax
jne 0x402e30
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00402fe5
cmp eax, edi
je 0x402e3a
mov esi, eax
jmp 0x402f81
push dword [ebp + 8]
call fcn.00402f9d
jmp 0x402e25
mov eax, dword [esi]
cmp eax, edi
jne 0x402e48
mov esi, dword [esi + 0x2c]
jmp 0x402f81
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x20000013
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push eax
mov dword [ebp - 0x14], 4
call edi
test eax, eax
jne 0x402e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402e29
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [esi]
call edi
test eax, eax
jne 0x402e91
mov dword [ebp - 8], eax
jmp 0x402e94
mov eax, dword [ebp - 8]
cmp byte [esi + 0x58], 0
je 0x402ed5
cmp dword [ebp - 0xc], 0x130
je 0x402ed5
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [esi + 0x48]
push eax
push 0x4000000b
push dword [esi]
mov dword [ebp + 8], 0x10
mov dword [ebp + 0xc], eax
call edi
test eax, eax
jne 0x402ed2
push 0x10
push eax
push dword [ebp + 0xc]
call fcn.00422720
add esp, 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0x193
cmp edx, ecx
ja 0x402f4d
je 0x402f46
mov ecx, edx
sub ecx, 0xc8
je 0x402f2a
sub ecx, 6
je 0x402f0a
sub ecx, 0x62
je 0x402f03
sub ecx, 0x61
jne 0x402f61
mov esi, 0xe0000012
jmp 0x402f75
mov esi, 0xe0000013
jmp 0x402f81
test eax, eax
jne 0x402f1c
mov eax, dword [ebp + 0x28]
and dword [eax], 0
mov eax, dword [ebp + 0x2c]
and dword [eax], 0
jmp 0x402f6c
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
jmp 0x402f6c
test eax, eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
jbe 0x402f41
mov ecx, dword [ebp + 0x28]
cmp dword [ecx], eax
jb 0x402f41
mov esi, 0xe0000010
jmp 0x402f81
mov eax, dword [ebp + 0x28]
jmp 0x402f17
mov esi, 0xe0000016
jmp 0x402f75
mov ecx, edx
sub ecx, 0x194
je 0x402f70
sub ecx, 3
je 0x402efc
sub ecx, 3
je 0x402f70
mov ecx, dword [ebp + 0x28]
and dword [ecx], 0
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
xor esi, esi
jmp 0x402f81
mov esi, 0xe0000018
mov eax, dword [ebp + 0x28]
and dword [eax], 0
mov eax, dword [ebp + 0x2c]
and dword [eax], 0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x28