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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45297a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12c4
call fcn.0043b380
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0x10
jb 0x41a10b
mov eax, dword [edi + 8]
jmp 0x41a10e
lea eax, [edi + 8]
push eax
mov eax, edi
call fcn.0041aaa0
test eax, eax
jne 0x41a15f
cmp dword [edi + 0x38], 0x10
jb 0x41a125
mov ecx, dword [edi + 0x24]
jmp 0x41a128
lea ecx, [edi + 0x24]
cmp dword [edi + 0x1c], 0x10
jb 0x41a133
mov eax, dword [edi + 8]
jmp 0x41a136
lea eax, [edi + 8]
push ecx
push eax
mov esi, edi
call fcn.0041aac3
test eax, eax
je 0x41a15f
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.0041adbf
xor ebx, ebx
mov dword [esp + 0x12dc], ebx
cmp dword [edi + 0xe0], ebx
je 0x41a18e
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0xcc]
push eax
lea ecx, [esp + 0x50]
call fcn.00402eb1
cmp dword [edi + 0x6c], ebx
je 0x41a1f8
lea eax, [edi + 0x58]
push eax
lea eax, [esp + 0x64]
push str.Cookie:
push eax
call fcn.00402faa
add esp, 0xc
push 0x4585d0
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.00402eb1
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.004017a5
push ebx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x12e4], bl
call fcn.004017a5
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [edi + 0x54], 0x10
mov edx, dword [edi + 0x50]
jb 0x41a20c
mov eax, dword [edi + 0x40]
jmp 0x41a20f
lea eax, [edi + 0x40]
cmp dword [esp + 0x5c], 0x10
mov ecx, dword [esp + 0x48]
jae 0x41a21e
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 0x41a327
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_failed_with_error_code__d_n
push 8
push dword [0x468674]
mov dword [esp + 0x1c], eax
call fcn.00429300
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x2f0d
jne 0x41a2a0
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 0x41a1fe
cmp eax, 0x2f05
jne 0x41a2d5
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 0x41a28e
cmp eax, 0x2f19
jne 0x41a30a
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 0x41a28e
cmp eax, 0x2f0c
jne 0x41a713
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
push 0x2f
jmp 0x41a293
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 0x41a713
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x41a463
cmp eax, 0xce
je 0x41a463
cmp eax, 0x12b
jbe 0x41a703
cmp eax, 0x131
jbe 0x41a390
cmp eax, 0x133
jne 0x41a703
push 0xfff
lea eax, [esp + 0x2d5]
push ebx
push eax
mov byte [esp + 0x2dc], bl
call fcn.0043ae00
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 0x41a703
lea eax, [esp + 0x2d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a3df
sub eax, edx
je 0x41a703
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.0041d651
lea eax, [esp + 0x7c]
push eax
call fcn.0041d5b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x12e8], 7
call fcn.004016f1
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.004017a5
jmp 0x41a703
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.0043ae00
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], pe_nt_image_headers32
call esi
test eax, eax
je 0x41a645
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0xd0]
push eax
call fcn.00401782
cmp dword [edi + 0xc4], ebx
je 0x41a645
push ebx
push str.text_
push dword [ebp + 0x10]
call fcn.00402bb0
cmp eax, 0xffffffff
je 0x41a645
push dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
call fcn.00401650
push ebx
push 0x458efc
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x12e8], 3
call fcn.00402bb0
cmp eax, 0xffffffff
je 0x41a568
push eax
push ebx
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0xa4]
call fcn.00402ccd
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x12e8], 4
call fcn.004016f1
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x12e4], 3
call fcn.004017a5
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x41a577
lea ecx, [esp + 0x2c]
lea eax, [edi + 0xb0]
cmp dword [eax + 0x18], 0x10
jb 0x41a588
mov eax, dword [eax + 4]
jmp 0x41a58b
add eax, 4
push ecx
push eax
push str.content_type_expect:__s__actual:__s_n
push 8
push dword [0x468674]
call fcn.00429300
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.00419ffb
push ebx
cmp eax, 0xffffffff
push 1
lea ecx, [esp + 0x84]
sete byte [esp + 0x1f]
call fcn.004017a5
push ebx
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0x12e4], 3
call fcn.004017a5
push ebx
lea ecx, [esp + 0x2c]
push 1
cmp byte [esp + 0x1f], bl
je 0x41a639
call fcn.004017a5
mov esi, 0x1bc
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.004017a5
mov eax, esi
jmp 0x41a148
mov byte [esp + 0x12e4], bl
call fcn.004017a5
push 0xff
lea eax, [esp + 0x1d5]
push ebx
push eax
mov byte [esp + 0x1dc], bl
call fcn.0043ae00
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 0x41a703
lea eax, [esp + 0x1d0]
push str.filename
push eax
call fcn.0043d300
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x41a703
add esi, 9
jmp 0x41a6a6
inc esi
cmp byte [esi], 0x20
je 0x41a6a5
cmp byte [esi], 0x22
jne 0x41a6b1
inc esi
cmp byte [esi], 0x2f
jne 0x41a6b7
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 0x41a6c2
sub ecx, dword [esp + 0x18]
je 0x41a6fa
mov cl, byte [eax + esi]
cmp cl, 0x3b
je 0x41a6f7
cmp cl, 0x22
je 0x41a6f7
mov ecx, esi
lea edx, [ecx + 1]
inc eax
mov dword [esp + 0x18], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41a6e6
sub ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x41a6cf
jmp 0x41a6fa
mov byte [eax + esi], bl
mov ecx, dword [ebp + 8]
push esi
call fcn.00401782
mov esi, dword [esp + 0x10]
mov byte [edi + 0x100], 1
jmp 0x41a626
mov esi, 0x190
jmp 0x41a626