Function at 0x4968d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x70], eax
push dword [ecx]
push 0xa
push eax
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [esi + 0x74], eax
test eax, eax
je 0x4976f8
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, dword [ebp + 0x10]
dec ecx
add dword [eax], ecx
mov eax, dword [esi + 0x74]
inc eax
mov dword [esi + 0x6c], eax
sub eax, dword [esi + 0x70]
push eax
push esi
push edi
call fcn.00497990
add esp, 0xc
test eax, eax
jne 0x497737
cmp dword [esi + 0x60], 0
mov eax, dword [esi + 0x64]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x874]
mov dword [esi + 0x78], eax
jne 0x496966
cmp dword [esi + 0x68], 5
jbe 0x496966
push dword [edi + 0x874]
push ebx
push edi
call fcn.00497890
add esp, 0xc
test al, al
je 0x49753a
mov edx, dword [esi + 0x78]
mov al, byte [edx]
cmp al, 0xa
je 0x497284
cmp al, 0xd
je 0x497288
mov ecx, dword [esi + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x60], eax
test ecx, ecx
jne 0x496c5c
mov eax, dword [ebx + 0x2c8]
mov eax, dword [eax + 0x40]
test al, 3
je 0x496ab3
lea ecx, [esi + 0x88]
push ecx
lea ecx, [ebp + 0xb]
push ecx
lea eax, [ebx + 0x180]
push eax
lea eax, [ebp - 0xc]
push eax
push str._HTTP__1d._1d_c_3d
push edx
call fcn.00485fc0
add esp, 0x18
cmp eax, 1
jne 0x496a02
cmp dword [ebp - 0xc], 2
jne 0x497571
lea eax, [esi + 0x88]
push eax
push str._HTTP_2__d
push dword [esi + 0x78]
call fcn.00485fc0
add esp, 0xc
cmp eax, 1
jne 0x497571
lea ecx, [ebx + 0x180]
mov byte [ebp + 0xb], 0x20
mov dword [ecx], 0
jmp 0x496a17
cmp eax, 4
jne 0x496a50
cmp byte [ebp + 0xb], 0x20
jne 0x497571
lea ecx, [ebx + 0x180]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*4]
add eax, eax
add dword [ecx], eax
cmp dword [esi + 0xa4], 2
jne 0x496b0f
cmp dword [ecx], 0x14
je 0x496b0f
push str.Lying_server__not_serving_HTTP_2_n
push edi
call fcn.00490990
add esp, 8
lea ecx, [ebx + 0x180]
jmp 0x496b0f
test eax, eax
jne 0x497571
lea eax, [esi + 0x88]
push eax
push str._HTTP__3d
push dword [esi + 0x78]
call fcn.00485fc0
add esp, 0xc
mov dword [ebx + 0x180], 0xa
lea ecx, [ebx + 0x180]
test eax, eax
jne 0x496b0f
push dword [esi + 0x78]
push edi
call fcn.00497810
add esp, 8
test al, al
je 0x497731
lea ecx, [ebx + 0x180]
mov dword [esi + 0x88], 0xc8
mov dword [ecx], 0xa
jmp 0x496b0f
test eax, 0x40000
je 0x497731
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebx + 0x184]
push ecx
lea eax, [ebp - 0x10]
push eax
push str._RTSP__1d._1d_c_3d
push edx
call fcn.00485fc0
add esp, 0x18
cmp eax, 4
jne 0x497731
cmp byte [ebp - 1], 0x20
jne 0x497731
mov eax, dword [ebp - 0x10]
lea ecx, [ebx + 0x180]
mov dword [ecx], 0xb
lea eax, [eax + eax*4]
add eax, eax
add dword [ebx + 0x184], eax
mov eax, dword [esi + 0x88]
mov dword [edi + 0x4bb8], eax
mov eax, dword [ecx]
mov dword [edi + 0x4bc0], eax
mov eax, dword [edi + 0x4b38]
test eax, eax
je 0x496b31
cmp eax, dword [ecx]
jle 0x496b39
mov eax, dword [ecx]
mov dword [edi + 0x4b38], eax
mov eax, dword [edi + 0x4b50]
or eax, dword [edi + 0x4b54]
je 0x496b65
cmp dword [edi + 0x400], 1
jne 0x496b65
cmp dword [esi + 0x88], 0x1a0
jne 0x496b65
mov byte [esi + 0xc9], 1
jmp 0x496ba3
cmp byte [edi + 0x4f8], 0
je 0x496ba3
mov eax, dword [esi + 0x88]
cmp eax, 0x190
jl 0x496ba3
cmp eax, 0x191
jne 0x496b8b
cmp byte [ebx + 0x288], 0
jne 0x496ba3
cmp eax, 0x197
jne 0x49758b
cmp byte [ebx + 0x289], 0
je 0x49758b
mov eax, dword [ecx]
cmp eax, 0xa
jne 0x496bc2
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.00490990
push 1
push ebx
call fcn.00491370
add esp, 0x10
jmp 0x496c18
cmp eax, 0x14
je 0x496c0c
cmp dword [esi + 0xa4], 1
jne 0x496bd9
cmp dword [esi + 0x88], 0x65
je 0x496c0c
cmp eax, 0xb
jl 0x496c18
cmp byte [ebx + 0x281], 0
jne 0x496c18
cmp dword [ebx + 0x548], 0
je 0x496c18
push ebx
push edi
call fcn.0049c140
add esp, 8
test al, al
jne 0x496c18
mov eax, dword [ebx + 0x548]
mov dword [eax], 1
jmp 0x496c18
mov eax, dword [ebx + 0x548]
mov dword [eax], 2
mov eax, dword [esi + 0x88]
sub eax, 0xcc
je 0x496c2a
sub eax, 0x64
jne 0x496c5c
cmp dword [edi + 0x3f0], 0
je 0x496c3a
mov byte [edi + 0x4bd0], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0xca], 1
cmp byte [esi + 0xca], 0
jne 0x496d28
cmp byte [edi + 0x51f], 0
jne 0x496d28
push 0xf
push dword [esi + 0x78]
push str.Content_Length:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x496d28
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi + 0x78]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.0049d800
add esp, 0x10
test eax, eax
jne 0x496cf2
mov eax, dword [edi + 0x4d8]
mov edx, dword [edi + 0x4dc]
or eax, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
je 0x496cd7
cmp ecx, edx
jg 0x4975a0
jl 0x496cd7
cmp eax, dword [edi + 0x4d8]
ja 0x4975a0
push ecx
push eax
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
call fcn.0049abd0
add esp, 0xc
jmp 0x497227
cmp eax, 1
jne 0x4975ba
mov eax, dword [edi + 0x4d8]
or eax, dword [edi + 0x4dc]
jne 0x4975a0
push 2
push ebx
call fcn.00491370
push str.Overflow_Content_Length:_value__n
push edi
call fcn.00490990
add esp, 0x10
jmp 0x497227
push 0xd
push dword [esi + 0x78]
push str.Content_Type:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x496d85
push dword [esi + 0x78]
call fcn.00496360
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4975d4
cmp byte [eax], 0
jne 0x496d68
push eax
call dword [0x5cc004]
add esp, 4
jmp 0x497227
push dword [edi + 0x4be8]
call dword [0x5cc004]
mov eax, dword [ebp - 8]
add esp, 4
mov dword [edi + 0x4be8], eax
jmp 0x497227
push 7
push dword [esi + 0x78]
push str.Server:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x496df1
cmp dword [ebx + 0x180], 0x14
jge 0x497227
push dword [esi + 0x78]
call fcn.00496360
mov ecx, dword [ebx + 0x548]
add esp, 4
mov dword [ebp - 8], eax
test ecx, ecx
je 0x496de2
cmp dword [ecx], 1
jne 0x496de2
push eax
push edi
call fcn.0049bf40
add esp, 8
test al, al
je 0x496ddf
mov eax, dword [ebx + 0x548]
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 8]
push eax
call dword [0x5cc004]
add esp, 4
jmp 0x497227
cmp dword [ebx + 0x180], 0xa
jne 0x496e37
cmp byte [ebx + 0x286], 0
je 0x496e37
push str.keep_alive
push str.Proxy_Connection:
push dword [esi + 0x78]
call fcn.00496290
add esp, 0xc
test al, al
je 0x496e37
push 0
push ebx
call fcn.00491370
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push edi
call fcn.00490990
add esp, 0x10
jmp 0x497227
cmp dword [ebx + 0x180], 0xb
jne 0x496e7d
cmp byte [ebx + 0x286], 0
je 0x496e7d
push str.close
push str.Proxy_Connection:
push dword [esi + 0x78]
call fcn.00496290
add esp, 0xc
test al, al
je 0x496e7d
push 1
push ebx
call fcn.00491370
push str.HTTP_1.1_proxy_connection_set_close__n
push edi
call fcn.00490990
add esp, 0x10
jmp 0x497227
cmp dword [ebx + 0x180], 0xa
jne 0x496eba
push str.keep_alive
push str.Connection:
push dword [esi + 0x78]
call fcn.00496290
add esp, 0xc
test al, al
je 0x496eba
push 0
push ebx
call fcn.00491370
push str.HTTP_1.0_connection_set_to_keep_alive__n
push edi
call fcn.00490990
add esp, 0x10
jmp 0x497227
push str.close
push str.Connection:
push dword [esi + 0x78]
call fcn.00496290
add esp, 0xc
test al, al
je 0x496ee3
push 2
push ebx
call fcn.00491370
add esp, 8
jmp 0x497227
push 0x12
push dword [esi + 0x78]
push str.Transfer_Encoding:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x496f10
mov eax, dword [esi + 0x78]
push 1
add eax, 0x12
push eax
push ebx
call fcn.004930e0
add esp, 0xc
jmp 0x49721f
push 0x11
push dword [esi + 0x78]
push str.Content_Encoding:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x496f46
cmp dword [edi + 0x55c], 0
je 0x496f46
mov eax, dword [esi + 0x78]
push 0
add eax, 0x11
push eax
push ebx
call fcn.004930e0
add esp, 0xc
jmp 0x49721f
push 0xe
push dword [esi + 0x78]
push str.Content_Range:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x49700b
mov eax, dword [esi + 0x78]
add eax, 0xe
mov dword [ebp - 8], eax
mov cl, byte [eax]
test cl, cl
je 0x496f97
mov ebx, eax
movzx eax, cl
push eax
call fcn.00480100
add esp, 4
test eax, eax
jne 0x496f8e
cmp byte [ebx], 0x2a
je 0x496f8e
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x496f71
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
push eax
call fcn.00480100
add esp, 4
test eax, eax
je 0x496ff2
lea eax, [esi + 0x80]
push eax
push 0xa
push 0
push dword [ebp - 8]
call fcn.0049d800
add esp, 0x10
test eax, eax
jne 0x497227
mov eax, dword [edi + 0x4b50]
cmp eax, dword [esi + 0x80]
jne 0x497227
mov eax, dword [edi + 0x4b54]
cmp eax, dword [esi + 0x84]
jne 0x497227
mov byte [esi + 0x7c], 1
jmp 0x497227
mov dword [edi + 0x4b50], 0
mov dword [edi + 0x4b54], 0
jmp 0x497227
cmp dword [edi + 0x6b8], 0
je 0x497075
push 0xb
push dword [esi + 0x78]
push str.Set_Cookie:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x497075
push 2
push 2
push edi
call fcn.00493320
mov eax, dword [ebx + 0x2f8]
add esp, 0xc
test eax, eax
jne 0x497047
mov eax, dword [ebx + 0xa0]
push dword [edi + 0x4b44]
push eax
mov eax, dword [esi + 0x78]
add eax, 0xb
push eax
push 0
push 1
push dword [edi + 0x6b8]
push edi
call fcn.004844d0
push 2
push edi
call fcn.00493360
add esp, 0x24
jmp 0x497227
push 0xe
push dword [esi + 0x78]
push str.Last_Modified:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x4970ed
cmp dword [edi + 0x3f0], 0
jne 0x49709d
cmp byte [edi + 0x4f1], 0
je 0x4970ed
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x78]
add eax, 0xe
mov dword [ebp - 0x28], edx
push eax
call fcn.0049d120
add esp, 0xc
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], edx
cmp byte [edi + 0x4f1], 0
je 0x497227
mov dword [edi + 0x4bc8], eax
mov eax, dword [esi + 0xb4]
mov dword [edi + 0x4bcc], eax
jmp 0x497227
push 0x11
push dword [esi + 0x78]
push str.WWW_Authenticate:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x497113
mov eax, dword [esi + 0x88]
mov dword [ebp - 8], eax
cmp eax, 0x191
je 0x497139
push 0x13
push dword [esi + 0x78]
push str.Proxy_authenticate:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x49717b
mov eax, dword [esi + 0x88]
mov dword [ebp - 8], eax
cmp eax, 0x197
jne 0x49717b
push dword [esi + 0x78]
call fcn.00496360
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4975d4
cmp dword [ebp - 8], 0x197
push eax
sete cl
movzx ecx, cl
push ecx
push ebx
call fcn.00496600
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
call dword [0x5cc004]
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x49721f
mov eax, dword [esi + 0x88]
cmp eax, 0x12c
jl 0x497204
cmp eax, 0x190
jge 0x497204
push 9
push dword [esi + 0x78]
push str.Location:
call fcn.00492f00
add esp, 0xc
test eax, eax
je 0x497204
cmp dword [edi + 0x13c], 0
jne 0x497204
push dword [esi + 0x78]
call fcn.00496360
add esp, 4
test eax, eax
je 0x4975d4
cmp byte [eax], 0
jne 0x4971d2
push eax
call dword [0x5cc004]
add esp, 4
jmp 0x497227
cmp byte [edi + 0x4fa], 0
mov dword [edi + 0x13c], eax
je 0x497227
push eax
call dword [0x5cc00c]
add esp, 4
mov dword [edi + 0x140], eax
test eax, eax
je 0x4975d4
push ebx
call fcn.00497ba0
add esp, 4
jmp 0x49721f
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x40000
je 0x497227
push dword [esi + 0x78]
push ebx
call fcn.004b15a0
add esp, 8
test eax, eax
jne 0x497737
xor eax, eax
cmp byte [edi + 0x4fd], al
setne al
add eax, 2
cmp byte [edi + 0x508], 0
mov dword [ebp - 0x14], eax
je 0x497255
push dword [esi + 0x68]
push dword [esi + 0x78]
push 1
push edi
call fcn.00490830
mov eax, dword [ebp - 0x14]
add esp, 0x10
push dword [esi + 0x68]
push dword [esi + 0x78]
push eax
push ebx
call fcn.00490800
add esp, 0x10
test eax, eax
jne 0x497737
mov eax, dword [esi + 0x68]
add dword [edi + 0x4bd4], eax
mov eax, dword [esi + 0x68]
add dword [edi + 0xa0], eax
jmp 0x497516
cmp al, 0xd
jne 0x49728e
lea eax, [edx + 1]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
cmp byte [eax], 0xa
jne 0x49729a
inc eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x88]
cmp eax, 0x64
jl 0x49730e
cmp eax, 0xc7
jg 0x49730e
sub eax, 0x64
je 0x4972dc
sub eax, 1
je 0x4972c6
mov byte [esi + 0x58], 1
mov dword [esi + 0x60], 0
jmp 0x497365
cmp dword [esi + 0xa4], 1
je 0x4975e0
mov byte [esi + 0x58], 0
jmp 0x497365
cmp dword [esi + 0xa0], 0
mov byte [esi + 0x58], 1
mov dword [esi + 0x60], 0
jle 0x497365
or dword [esi + 0xc4], 2
push 0
push edi
mov dword [esi + 0xa0], 0
call fcn.00481a20
add esp, 8
jmp 0x497365
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0x58], 0
cmp eax, 0xffffffff
jne 0x497365
cmp byte [esi + 0xdc], 0
jne 0x497365
cmp byte [ebx + 0x281], 0
jne 0x49736e
cmp dword [ebx + 0x180], 0xb
jne 0x497365
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x40000
jne 0x497365
cmp dword [edi + 0x400], 6
je 0x497365
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.00490990
push 2
push ebx
call fcn.00491370
add esp, 0x10
cmp byte [ebx + 0x281], 0
je 0x4973a9
mov eax, dword [edi + 0xf8]
cmp eax, 0x191
jne 0x497384
cmp dword [ebx + 0x33c], 2
je 0x497394
cmp eax, 0x197
jne 0x4973a9
cmp dword [ebx + 0x354], 2
jne 0x4973a9
push str.Connection_closure_while_negotiating_auth__HTTP_1.0___n
push edi
call fcn.00490990
add esp, 8
mov byte [edi + 0x494c], 1
push ebx
call fcn.00497d50
add esp, 4
test eax, eax
jne 0x4976d8
mov eax, dword [edi + 0x874]
mov ecx, dword [esi + 0x78]
sub ecx, eax
push ecx
push eax
xor eax, eax
mov dword [ebp - 8], ecx
cmp byte [edi + 0x4fd], al
setne al
add eax, 2
push eax
push ebx
call fcn.00490800
add esp, 0x10
test eax, eax
jne 0x497737
mov eax, dword [ebp - 8]
add dword [edi + 0xa0], eax
add dword [edi + 0x4bd4], eax
mov eax, dword [esi + 0x88]
mov ecx, dword [edi + 0xa0]
cmp eax, 0x64
jl 0x497411
cmp eax, 0xc7
jle 0x497413
xor ecx, ecx
push ebx
mov dword [edi + 0xa4], ecx
call fcn.00496430
add esp, 4
test eax, eax
jne 0x497737
cmp dword [esi + 0x88], 0x12c
jl 0x49750c
cmp byte [ebx + 0x292], al
jne 0x4974ee
cmp byte [ebx + 0x281], al
jne 0x4974ee
cmp byte [ebx + 0x293], al
jne 0x4974f7
mov eax, dword [edi + 0x400]
add eax, 0xfffffffe
cmp eax, 3
ja 0x4974ee
push 0
push edi
call fcn.00481a20
add esp, 8
cmp byte [esi + 0xc8], 0
jne 0x4974ee
cmp byte [edi + 0x4f9], 0
je 0x4974b7
push str.HTTP_error_before_end_of_send__keep_sending_n
push edi
call fcn.00490990
add esp, 8
cmp dword [esi + 0xa0], 0
jle 0x4974ee
or dword [esi + 0xc4], 2
mov dword [esi + 0xa0], 0
jmp 0x4974ee
push str.HTTP_error_before_end_of_send__stop_sending_n
push edi
call fcn.00490990
push 2
push ebx
call fcn.00491370
and dword [esi + 0xc4], 0xfffffffd
add esp, 0x10
mov byte [esi + 0xc8], 1
cmp byte [edi + 0x4b3c], 0
je 0x4974ee
mov dword [esi + 0xa0], 3
cmp byte [ebx + 0x293], 0
je 0x49750c
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.00490990
add esp, 8
or dword [esi + 0xc4], 2
cmp byte [esi + 0x58], 0
je 0x49760f
mov eax, dword [edi + 0x874]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x68], 0
cmp byte [eax], 0
je 0x497735
mov ecx, dword [ebp + 0x10]
jmp 0x4968f0
mov eax, dword [ebp + 0x10]
mov byte [esi + 0x58], 0
cmp dword [eax], 0
je 0x497556
pop edi
mov dword [esi + 0x5c], 1
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x5c], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
pop edi
mov dword [esi + 0x6c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response_n
push edi
call fcn.004908b0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00497fd0
add esp, 4
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Maximum_file_size_exceeded
push edi
call fcn.004908b0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Content_Length:_value
push edi
call fcn.004908b0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101_n
push edi
call fcn.00490990
add esp, 8
mov dword [esi + 0xa4], 2
mov byte [esi + 0x58], 1
mov eax, 1
mov dword [esi + 0x60], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x500], 0
je 0x497620
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 1
jmp 0x497674
mov eax, dword [ebx + 0x2c8]
test dword [eax + 0x40], 0x40000
je 0x49764d
cmp dword [edi + 0x63c], 2
jne 0x49764d
cmp dword [esi + 4], 0xffffffff
jg 0x49764d
jl 0x497645
cmp dword [esi], 0xffffffff
ja 0x49764d
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 1
jmp 0x497674
cmp byte [esi + 0xdc], 0
mov ebx, dword [ebp + 0x14]
je 0x497674
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x497682
cmp eax, ecx
je 0x497698
push eax
push ecx
push edi
call fcn.0049abd0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], 0
jne 0x4976a9
cmp dword [esi + 0x14], 0
jne 0x4976a9
mov byte [ebx], 1
jmp 0x4976ae
cmp byte [ebx], 0
je 0x4976b5
and dword [esi + 0xc4], 0xfffffffe
cmp byte [edi + 0x508], 0
je 0x497735
push dword [ebp - 8]
push dword [esi + 0x70]
push 1
push edi
call fcn.00490830
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x88]
push str.The_requested_URL_returned_error:__d
push edi
call fcn.004908b0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push dword [eax]
push esi
push edi
call fcn.00497990
add esp, 0xc
test eax, eax
jne 0x497737
cmp dword [esi + 0x60], eax
jne 0x497735
cmp dword [esi + 0x68], 5
jbe 0x497735
push dword [edi + 0x874]
push ebx
push edi
call fcn.00497890
add esp, 0xc
test al, al
jne 0x497735
mov dword [esi + 0x5c], 2
mov byte [esi + 0x58], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret