Function at 0x4f0890
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ffe02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
mov eax, dword [0x540cc0]
push ebx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1a8], eax
call dword [0x502470]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1b4], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push eax
lea ecx, [esp + 0x18]
call dword [0x502470]
push ebx
push 0x5201d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
push eax
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
xor ecx, ecx
mov dword [esp + 0x95], ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x9d], ecx
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0xa5], cl
push str._s__d
lea ecx, [esp + 0x50]
mov byte [esp + 0x1c0], 2
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xa0], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
mov ecx, dword [esp + 0x50]
add esp, 0x10
lea edx, [esp + 0x20]
mov dword [esi + 0x30], ecx
push edx
lea ecx, [esp + 0x18]
call dword [0x502474]
push ebx
push str.filename_
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f0af3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call dword [0x502474]
push ebx
push str.content_disposition:
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f09c3
mov dword [esi + 0x38], ebx
jmp 0x4f0bcb
lea ecx, [esp + 0x1c]
call dword [0x502480]
push edi
lea ecx, [esp + 0x14]
push ecx
mov bl, 3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b8], 4
call dword [0x502474]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x5201d4
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push 0
push str.filename
lea ecx, [esp + 0x20]
mov byte [esp + 0x1bc], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f0a65
lea ecx, [esp + 0x18]
mov dword [esi + 0x38], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
jmp 0x4f0bbd
push edi
push 0x3b
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
lea ecx, [esp + 0x18]
jne 0x4f0aa8
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov ecx, 0xfffffff7
sub ecx, edi
add eax, ecx
push eax
add edi, 9
push edi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
mov byte [esp + 0x1b4], 6
jmp 0x4f0ac5
sub eax, edi
sub eax, 9
push eax
add edi, 9
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
mov byte [esp + 0x1b4], 7
lea ecx, [esi + 8]
push eax
call dword [0x502474]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
mov dword [esi + 0x38], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
jmp 0x4f0bbd
lea ecx, [esp + 0x18]
call dword [0x502480]
push edi
lea ecx, [esp + 0x14]
push ecx
mov bl, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], 9
call dword [0x502474]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x5201d4
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push 0xa
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1bc], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Delete]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
dec eax
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x1b8], 0xb
call dword [0x502474]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov dword [esi + 0x38], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call dword [0x502474]
push 0
push str._r_nset_cookie:
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f0cc4
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xa0]
push ebx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
lea ecx, [esp + 0xa0]
push ecx
push str._r_nset_cookie:__s_r_n
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0xa0]
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f0c50
sub eax, edi
push eax
add ebx, 0xe
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
mov eax, dword [eax]
push eax
lea edi, [esi + 0x14]
push 0x520204
push edi
mov byte [esp + 0x1c0], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x52164c
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f0cc4
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
sub eax, ebx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Delete]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call dword [0x502474]
mov ecx, dword [esi + 0x30]
cmp ecx, 0xc8
lea eax, [esi + 0x30]
jne 0x4f0d44
push 0
push str._r_ncontent_length:
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
cmp eax, 0xffffffff
je 0x4f0d38
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
lea ecx, [esi + 0x28]
push ecx
push str._r_ncontent_length:__ld_r_n
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [esi + 0x40], 0
jmp 0x4f120a
mov dword [esi + 0x40], 1
jmp 0x4f120a
cmp ecx, 0xce
jne 0x4f0db4
push 0
mov edi, 1
push str._r_ncontent_range:
lea ecx, [esp + 0x1c]
mov dword [esi + 0x3c], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
cmp eax, 0xffffffff
je 0x4f0dac
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
lea ecx, [esi + 0x28]
push ecx
lea edx, [esi + 0x24]
push edx
add esi, 0x20
push esi
push str._r_ncontent_range:_bytes__ld__ld__ld_r_n
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4f120a
mov dword [esi + 0x44], edi
jmp 0x4f120a
cmp ecx, 0x12c
jle 0x4f11df
cmp ecx, 0x190
jge 0x4f11df
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call dword [0x502474]
push 0x515c28
lea ecx, [esp + 0x1c]
mov dword [esi + 0x34], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0
mov bl, 0xd
push str._r_nlocation:
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f0e61
lea ecx, [edi + 2]
push ecx
push 0x5201d4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
sub eax, edi
sub eax, 0xc
push eax
add edi, 0xc
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1b8], 0xe
call dword [0x502474]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4f0e68
mov dword [esi + 0x44], 1
lea edi, [esi + 4]
push edi
lea ecx, [esp + 0x1c]
call dword [0x502474]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0
push str.http:__
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
cmp eax, 0xffffffff
jne 0x4f11d3
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetAt]
cmp al, 0x2f
jne 0x4f0ffa
lea ecx, [esp + 0x50]
call fcn.004ded50
lea ecx, [esi + 0x18]
mov byte [esp + 0x1b4], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x54]
call fcn.004dd970
lea ecx, [esp + 0x50]
call fcn.004de440
lea ecx, [esp + 0x1c]
call dword [0x502480]
movzx eax, word [esp + 0x6c]
push eax
lea ecx, [esp + 0x20]
push 0x520e5c
push ecx
mov byte [esp + 0x1c0], 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0x520260
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov esi, eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b4], 0x11
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ebx, eax
push str.http:__
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b8], 0x12
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ebx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x1c0], 0x13
call fcn.00407ee0
push esi
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1cc], 0x14
call fcn.00407ee0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x1d8], 0x15
call fcn.00407ee0
push edi
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1e4], 0x16
call fcn.00407ee0
add esp, 0x30
push eax
mov ecx, edi
mov byte [esp + 0x1b8], 0x17
call dword [0x502474]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
jmp 0x4f11ba
push 0
push str.ftp:__
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
cmp eax, 0xffffffff
je 0x4f1026
lea ecx, [esp + 0x18]
mov dword [esi + 0x4c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4f120a
lea ecx, [esp + 0x50]
call fcn.004ded50
lea ecx, [esi + 0x18]
mov byte [esp + 0x1b4], 0x18
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x54]
call fcn.004dd970
lea ecx, [esp + 0x50]
call fcn.004de440
lea ecx, [esp + 0x1c]
call dword [0x502480]
movzx ecx, word [esp + 0x6c]
push ecx
lea edx, [esp + 0x20]
push 0x520e5c
push edx
mov byte [esp + 0x1c0], 0x19
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x68]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov esi, eax
push 0x520260
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b8], 0x1a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ebx, eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b4], 0x1b
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x28], eax
push str.http:__
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b8], 0x1c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1c0], 0x1d
call fcn.00407ee0
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1cc], 0x1e
call fcn.00407ee0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1d8], 0x1f
call fcn.00407ee0
push esi
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x1e4], 0x20
call fcn.00407ee0
push edi
mov byte [esp + 0x1e8], 0x21
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00407ee0
add esp, 0x3c
push eax
mov ecx, edi
mov byte [esp + 0x1b8], 0x22
call dword [0x502474]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x50]
call fcn.004dee50
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4f120a
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 0x54]
mov dword [esi + 0x44], 1
call fcn.004f06b0
mov eax, dword [esp + 0x30]
cmp eax, dword [esi + 0x58]
je 0x4f120a
add eax, 0x10
push eax
lea ecx, [esi + 0x50]
call dword [0x502474]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
call fcn.004f2f91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret