Function at 0x402730
Capabilities:
Get file size
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a998
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x4028e0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402780
sub ecx, edx
je 0x4028e0
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 7
jbe 0x40279b
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 2
push 0x5d0f10
push ecx
call fcn.00403a10
add esp, 0xc
cmp eax, 0xffffffff
je 0x40283a
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
cmovb eax, dword [esi + 0x10]
mov ecx, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp edi, 7
jbe 0x4027dc
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00403b60
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
call fcn.00402590
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x40283a
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402830
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bb2
push ecx
push edx
call fcn.004234d3
add esp, 8
cmp dword [esi + 0x14], 7
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, esi
jbe 0x40284c
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4028a5
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x402890
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4028b1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x1c]
push edi
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4028b1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
cmp dword [esi + 0x14], 7
jbe 0x4028b9
mov esi, dword [esi]
push 0x5d0e10
push esi
call fcn.0054c59b
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
test esi, esi
jne 0x4028ff
mov ecx, dword [ebp - 0x74]
mov dword [ecx], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret 0x14
call fcn.004b81a0
mov edi, eax
test edi, edi
jne 0x40291b
push esi
mov byte [ebp - 0x65], al
call fcn.0054c81c
mov al, byte [ebp - 0x65]
add esp, 4
jmp 0x4028e2
push dword [ebp - 0x78]
push 0x2712
push edi
call fcn.004bc690
push 0
push 0x40
push edi
call fcn.004bc690
push 0
push 0x51
push edi
call fcn.004bc690
push 0
push 0x2a
push edi
call fcn.004bc690
push 0x402390
push 0x4e2b
push edi
call fcn.004bc690
push esi
push 0x2711
push edi
call fcn.004bc690
add esp, 0x48
push 1
push 0x29
push edi
call fcn.004bc690
push 1
push 0x34
push edi
call fcn.004bc690
push 0
push 0x2b
push edi
call fcn.004bc690
push 0x4023c0
push 0x4efb
push edi
call fcn.004bc690
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x2749
push edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x41edf0
call fcn.004bc690
push 1
push 0x2d
push edi
call fcn.004bc690
add esp, 0x48
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
push 0x75a4
push edi
call fcn.004bc690
push 1
push 0x63
push edi
call fcn.004bc690
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_94.0.4606.71_Safari_537.36_Core_1.94.249.400_QQBrowser_12.5.5658.400
push 0x2722
push edi
call fcn.004bc690
add esp, 0x28
lea eax, [ebp - 0x90]
push eax
call fcn.00402bd0
push 6
push str.cookie
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004036e0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x402a87
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bb7
push ecx
push edx
call fcn.004234d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x7c], 7
push eax
call fcn.00402450
cmp dword [ebp - 0x50], 0xf
lea eax, [ebp - 0x64]
cmova eax, dword [ebp - 0x64]
push eax
push 0x272f
push edi
call fcn.004bc690
push edi
call fcn.004b8200
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x14], 0
mov dword [ecx], eax
lea eax, [ebp - 0x14]
push eax
push 0x200002
push edi
call fcn.004b8180
push edi
call fcn.004b8160
push esi
call fcn.0054c81c
mov eax, dword [ebp - 0x74]
add esp, 0x24
cmp dword [eax], 0
jne 0x402b0d
mov eax, dword [ebp - 0x14]
add eax, 0xffffff38
mov byte [ebp - 0x65], 1
cmp eax, 0xc7
jbe 0x402b11
mov byte [ebp - 0x65], 0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x402b45
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402b3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bbc
push ecx
push edx
call fcn.004234d3
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 7
jbe 0x402b8d
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bbc
push ecx
push edx
call fcn.004234d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
push esi
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.0054c81c
mov al, byte [ebp - 0x65]
add esp, 4
jmp 0x4028e2
call fcn.0054d06c
call fcn.0054d06c
call fcn.0054d06c
int3