Function at 0x402e94
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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.004032c4
cmp eax, ebx
jne 0x4032be
cmp byte [ebp + 0x28], bl
mov eax, dword [esi]
mov dword [esi + 8], eax
mov dword [ebp + 0x1c], 0x8440c000
je 0x402ed9
mov dword [ebp + 0x1c], 0x84c0c000
cmp byte [ebp + 0x24], bl
je 0x402ee2
or byte [ebp + 0x1e], 0x20
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push edi
sub eax, 0x10
mov dword [ebp - 0xc], 0x425744
mov dword [ebp - 8], ebx
call fcn.00401773
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 0x402f1c
push ecx
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov edi, dword [ebp - 4]
push dword [ebp + 0x1c]
lea eax, [ebp - 0xc]
push eax
push 0x4256e6
push str.HTTP_1.0
push edi
push dword [ebp + 0xc]
mov eax, esi
push dword [esi + 8]
call fcn.00403319
cmp eax, ebx
je 0x402f46
mov esi, eax
jmp 0x4032b3
mov eax, dword [0x42a5a0]
mov edi, 0x42a5a0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x2c]
cmp dword [eax], ebx
jbe 0x402fa0
mov eax, dword [0x42a5a0]
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.00403d0a
mov edi, dword [ebp + 0x28]
add esp, 0xc
push dword [edi - 0xc]
lea eax, [ebp + 0x24]
push edi
push eax
call fcn.00401c90
lea eax, [edi - 0x10]
call fcn.0040175b
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x402fb1
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.00403f43
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x402fbc
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 0x24]
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]
mov eax, esi
call fcn.00403371
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x28]
push eax
push 0x20000013
push dword [esi]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x20], 4
call edi
test eax, eax
je 0x403240
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000005
push dword [esi]
call edi
test eax, eax
jne 0x40301f
mov dword [ebp + 0x1c], eax
jmp 0x403022
mov eax, dword [ebp + 0x1c]
cmp byte [esi + 0x58], bl
je 0x40305f
cmp dword [ebp + 0x28], 0x130
je 0x40305f
push ebx
lea ecx, [ebp + 0xc]
push ecx
lea eax, [esi + 0x48]
push eax
push 0x4000000b
push dword [esi]
mov dword [ebp + 0xc], 0x10
call edi
test eax, eax
jne 0x40305c
push 0x10
lea eax, [esi + 0x48]
push ebx
push eax
call fcn.00423c90
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
mov ecx, 0x193
cmp edx, ecx
ja 0x4031c9
je 0x403258
mov ecx, edx
sub ecx, 0xc8
je 0x4031ad
sub ecx, 6
je 0x403194
sub ecx, 0x62
je 0x40324a
sub ecx, 0x61
jne 0x4031e9
mov dword [ebp + 0x10], 0xe0000012
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0x2f0d
je 0x4031f8
cmp eax, 0x2f0c
je 0x4031f8
cmp eax, 0x2f06
je 0x4031f8
cmp eax, 0x2f05
je 0x4031f8
cmp eax, 0xe0000012
jne 0x403246
push 7
mov edi, esi
call fcn.00403c7d
mov cl, 5
mov eax, esi
call fcn.00403524
mov eax, dword [0x42a5a0]
mov edi, 0x42a5a0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [0x42a5a0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [0x42a5a0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x28]
push dword [esi]
push esi
call fcn.00403baf
cmp dword [ebp + 0x28], 0x197
lea edi, [ebp + 8]
sete al
lea ebx, [ebp + 0x14]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [esi]
call fcn.00403c2d
test al, al
mov cl, 4
mov eax, esi
je 0x40325f
call fcn.00403524
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040175b
xor ebx, ebx
jmp 0x402fbc
cmp eax, ebx
je 0x4030a5
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
jmp 0x4030af
cmp eax, ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jbe 0x4031c1
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], eax
jae 0x403251
mov eax, dword [ebp + 0x2c]
jmp 0x4030ad
mov ecx, edx
sub ecx, 0x194
je 0x403296
sub ecx, 3
je 0x40309e
sub ecx, 3
je 0x403296
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x4030af
push 6
mov edi, esi
call fcn.00403c7d
mov cl, 5
mov eax, esi
call fcn.00403524
mov eax, dword [esi + 0x68]
cmp eax, ebx
jne 0x403217
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebx
push 7
push dword [ebp + 0x10]
push dword [esi]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
test eax, eax
mov cl, 4
mov eax, esi
jne 0x40328c
call fcn.00403524
lea eax, [ebp + 0x24]
call fcn.0040187a
jmp 0x402fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4032a5
mov esi, 0xe0000013
jmp 0x4032a5
mov esi, 0xe0000010
jmp 0x4032a5
mov esi, 0xe0000016
jmp 0x40329b
call fcn.00403524
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040175b
mov esi, 0xe0000012
jmp 0x4032a5
call fcn.00403524
mov esi, dword [ebp + 0x10]
jmp 0x4032a5
mov esi, 0xe0000018
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
call fcn.0040175b
mov edi, dword [ebp - 4]
lea eax, [edi - 0x10]
call fcn.0040175b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x2c