Function at 0x401960
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x418], eax
push edi
xor esi, esi
mov dword [ebp - 0x414], ebx
xor edi, edi
mov dword [eax], esi
call fcn.00401330
test eax, eax
jne 0x401b91
mov eax, dword [ebp - 0x418]
push edi
push 0x1bb
push str.jklimg.oss_cn_shenzhen.aliyuncs.com
push str._app_ios_007.bin
push str.GET__s_HTTP_1.1_r_nAccept:___r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_129.0.0.0_Safari_537.36_r_nHost:__s:_d_r_nContent_Length:__d_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n
push 0x200000
push ebx
mov dword [eax], esi
call fcn.004012f0
mov ebx, eax
add esp, 0x1c
mov esi, ebx
nop dword [eax]
mov edx, dword [ebp - 0x414]
mov eax, 0x4000
cmp esi, eax
cmovl eax, esi
push eax
lea edx, [edx + edi]
call fcn.0040d170
add edi, eax
add esp, 4
sub esi, eax
cmp edi, ebx
jl 0x4019d0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004459f0
add esp, 0xc
lea edx, [ebp - 0x410]
push 0x3ff
call fcn.0040c6b0
mov edi, eax
add esp, 4
test edi, edi
jg 0x401a34
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x410]
push str.HTTP_1.1
push eax
call fcn.00445780
mov esi, eax
add esp, 8
test esi, esi
je 0x401ba4
add esi, 9
push 0x45e148
push esi
call fcn.00445780
mov ecx, esi
add esp, 8
mov edx, eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a73
sub ecx, ebx
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x401a80
sub edx, ebx
lea eax, [ebp - 0xc]
sub ecx, edx
push ecx
push esi
push eax
call fcn.00446970
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call fcn.0044a6f3
add esp, 4
cmp eax, 0xc8
jne 0x401ba4
lea ecx, [edi - 4]
xor eax, eax
test ecx, ecx
jle 0x401ad2
nop dword [eax]
cmp dword [ebp + eax - 0x410], 0xa0d0a0d
je 0x401ad2
inc eax
cmp eax, ecx
jl 0x401ac0
mov esi, edi
sub esi, eax
push ecx
lea ecx, [ebp - 0x410]
sub esi, 4
call fcn.004018b0
mov ebx, eax
add esp, 4
cmp ebx, 0x200000
jae 0x401ba4
test ebx, ebx
jne 0x401b0b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
sub edi, esi
lea eax, [ebp - 0x410]
push esi
add eax, edi
push eax
push dword [ebp - 0x414]
call fcn.00446970
mov edi, ebx
add esp, 0xc
sub edi, esi
je 0x401b75
nop dword [eax + eax]
cmp esi, 0x200000
jge 0x401b81
mov edx, dword [ebp - 0x414]
mov eax, 0x4000
cmp edi, eax
cmovl eax, edi
push eax
lea edx, [edx + esi]
call fcn.0040c6b0
add esp, 4
cmp eax, 0xffff9700
je 0x401b71
cmp eax, 0xffff9780
je 0x401b71
cmp eax, 0xffff8780
je 0x401b7d
test eax, eax
jle 0x401b7d
add esi, eax
sub edi, eax
test edi, edi
jne 0x401b30
cmp esi, 0x200000
jge 0x401b81
cmp esi, ebx
je 0x401b84
or esi, 0xffffffff
mov eax, dword [ebp - 0x418]
mov dword [eax], ebx
call fcn.00401bc0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444a17
mov esp, ebp
pop ebp
ret