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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12c4
call fcn.0043b0f0
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0x10
jb 0x41a0ca
mov eax, dword [edi + 8]
jmp 0x41a0cd
lea eax, [edi + 8]
push eax
mov eax, edi
call fcn.0041aa5f
test eax, eax
jne 0x41a11e
cmp dword [edi + 0x38], 0x10
jb 0x41a0e4
mov ecx, dword [edi + 0x24]
jmp 0x41a0e7
lea ecx, [edi + 0x24]
cmp dword [edi + 0x1c], 0x10
jb 0x41a0f2
mov eax, dword [edi + 8]
jmp 0x41a0f5
lea eax, [edi + 8]
push ecx
push eax
mov esi, edi
call fcn.0041aa82
test eax, eax
je 0x41a11e
mov eax, 0x190
mov ecx, dword [esp + 0x12d4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x44]
push eax
push edi
call fcn.0041ad7e
xor ebx, ebx
mov dword [esp + 0x12dc], ebx
cmp dword [edi + 0xe0], ebx
je 0x41a14d
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0xcc]
push eax
lea ecx, [esp + 0x50]
call fcn.00402eb3
cmp dword [edi + 0x6c], ebx
je 0x41a1b7
lea eax, [edi + 0x58]
push eax
lea eax, [esp + 0x64]
push str.Cookie:
push eax
call fcn.00402fac
add esp, 0xc
push 0x4575c8
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x12e8], 1
call fcn.00402fff
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x12e8], 2
call fcn.00402eb3
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.004017a7
push ebx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x12e4], bl
call fcn.004017a7
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [edi + 0x54], 0x10
mov edx, dword [edi + 0x50]
jb 0x41a1cb
mov eax, dword [edi + 0x40]
jmp 0x41a1ce
lea eax, [edi + 0x40]
cmp dword [esp + 0x5c], 0x10
mov ecx, dword [esp + 0x48]
jae 0x41a1dd
lea ecx, [esp + 0x48]
push edx
push eax
push 0xffffffffffffffff
push ecx
push dword [edi + 0xf0]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41a2e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_failed_with_error_code__d_n
push 8
push dword [0x467474]
mov dword [esp + 0x1c], eax
call fcn.00429210
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x2f0d
jne 0x41a25f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
push 0x1f
push dword [edi + 0xf0]
mov dword [esp + 0x1c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [esp + 0x20], 0x1100
lea eax, [esp + 0x20]
push 4
push eax
push 0x1f
push dword [edi + 0xf0]
call esi
jmp 0x41a1bd
cmp eax, 0x2f05
jne 0x41a294
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
push 0x1f
push dword [edi + 0xf0]
mov dword [esp + 0x1c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [esp + 0x1c], 0x2000
lea eax, [esp + 0x1c]
jmp 0x41a24d
cmp eax, 0x2f19
jne 0x41a2c9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1f
push dword [edi + 0xf0]
mov dword [esp + 0x1c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [esp + 0x10], 0x80
lea eax, [esp + 0x10]
jmp 0x41a24d
cmp eax, 0x2f0c
jne 0x41a6d2
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
push 0x2f
jmp 0x41a252
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0x20000013
push dword [edi + 0xf0]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 4
call esi
test eax, eax
je 0x41a6d2
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x41a422
cmp eax, 0xce
je 0x41a422
cmp eax, 0x12b
jbe 0x41a6c2
cmp eax, 0x131
jbe 0x41a34f
cmp eax, 0x133
jne 0x41a6c2
push 0xfff
lea eax, [esp + 0x2d5]
push ebx
push eax
mov byte [esp + 0x2dc], bl
call fcn.0043ab70
add esp, 0xc
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2d8]
push eax
push 0x21
push dword [edi + 0xf0]
mov dword [esp + 0x30], 0x1000
call esi
test eax, eax
je 0x41a6c2
lea eax, [esp + 0x2d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a39e
sub eax, edx
je 0x41a6c2
sub esp, 0x1c
mov dword [esp + 0x40], esp
mov esi, esp
sub esp, 0x1c
lea eax, [esp + 0x308]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.0040162e
sub esp, 0x1c
lea eax, [edi + 4]
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
mov byte [esp + 0x1334], 6
call fcn.00401650
push esi
mov byte [esp + 0x1334], bl
call fcn.0041d60e
lea eax, [esp + 0x7c]
push eax
call fcn.0041d576
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x12e8], 7
call fcn.004016f3
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.004017a7
jmp 0x41a6c2
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x20000005
mov dword [eax], ebx
mov dword [eax + 4], ebx
push dword [edi + 0xf0]
mov dword [esp + 0x30], 8
call esi
push 0xff
lea eax, [esp + 0xd5]
push ebx
push eax
mov byte [esp + 0xdc], bl
call fcn.0043ab70
add esp, 0xc
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xd8]
push eax
push 1
push dword [edi + 0xf0]
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x41a604
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0xd0]
push eax
call fcn.00401784
cmp dword [edi + 0xc4], ebx
je 0x41a604
push ebx
push str.text_
push dword [ebp + 0x10]
call fcn.00402bb2
cmp eax, 0xffffffff
je 0x41a604
push dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
call fcn.00401650
push ebx
push 0x457ef4
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x12e8], 3
call fcn.00402bb2
cmp eax, 0xffffffff
je 0x41a527
push eax
push ebx
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0xa4]
call fcn.00402ccf
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x12e8], 4
call fcn.004016f3
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x12e4], 3
call fcn.004017a7
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x41a536
lea ecx, [esp + 0x2c]
lea eax, [edi + 0xb0]
cmp dword [eax + 0x18], 0x10
jb 0x41a547
mov eax, dword [eax + 4]
jmp 0x41a54a
add eax, 4
push ecx
push eax
push str.content_type_expect:__s__actual:__s_n
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0x14
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.004010eb
mov dword [esp + 0x20], eax
lea eax, [edi + 0xb0]
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x12ec], 5
call fcn.004010eb
add esp, 0x10
push eax
mov eax, dword [esp + 0x1c]
call fcn.00419fa7
push ebx
cmp eax, 0xffffffff
push 1
lea ecx, [esp + 0x84]
sete byte [esp + 0x1f]
call fcn.004017a7
push ebx
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0x12e4], 3
call fcn.004017a7
push ebx
lea ecx, [esp + 0x2c]
push 1
cmp byte [esp + 0x1f], bl
je 0x41a5f8
call fcn.004017a7
mov esi, 0x1bc
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.004017a7
mov eax, esi
jmp 0x41a107
mov byte [esp + 0x12e4], bl
call fcn.004017a7
push 0xff
lea eax, [esp + 0x1d5]
push ebx
push eax
mov byte [esp + 0x1dc], bl
call fcn.0043ab70
add esp, 0xc
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1d8]
push eax
push 0x2f
push dword [edi + 0xf0]
mov dword [esp + 0x38], 0xff
call esi
test eax, eax
je 0x41a6c2
lea eax, [esp + 0x1d0]
push str.filename
push eax
call fcn.0043d070
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x41a6c2
add esi, 9
jmp 0x41a665
inc esi
cmp byte [esi], 0x20
je 0x41a664
cmp byte [esi], 0x22
jne 0x41a670
inc esi
cmp byte [esi], 0x2f
jne 0x41a676
inc esi
mov ecx, esi
lea edx, [ecx + 1]
xor eax, eax
mov dword [esp + 0x18], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41a681
sub ecx, dword [esp + 0x18]
je 0x41a6b9
mov cl, byte [eax + esi]
cmp cl, 0x3b
je 0x41a6b6
cmp cl, 0x22
je 0x41a6b6
mov ecx, esi
lea edx, [ecx + 1]
inc eax
mov dword [esp + 0x18], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41a6a5
sub ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x41a68e
jmp 0x41a6b9
mov byte [eax + esi], bl
mov ecx, dword [ebp + 8]
push esi
call fcn.00401784
mov esi, dword [esp + 0x10]
mov byte [edi + 0x100], 1
jmp 0x41a5e5
mov esi, 0x190
jmp 0x41a5e5