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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.005788c5
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x6571e1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.005788c5
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x6571e1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x28]
call fcn.00548fd8
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x54c0f4
push ebx
call fcn.005788bf
add esp, 4
lea eax, [ebp - 8]
push eax
mov eax, str.Host
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c11d
push ebx
call fcn.005788bf
add esp, 4
mov eax, str.Upgrade
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Connection
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x54c14e
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c15e
push ebx
call fcn.005788bf
add esp, 4
mov eax, str.websocket
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Upgrade
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x54c18f
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c19f
push ebx
call fcn.005788bf
add esp, 4
mov eax, 0xbaa57b
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Sec_WebSocket_Version
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x54c1d0
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c1e0
push ebx
call fcn.005788bf
add esp, 4
push 0x10
call fcn.0054cbc6
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x54c201
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0054a208
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Sec_WebSocket_Key
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x54c23a
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c24a
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
add ebx, 0x34
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
cmp dword [ebx], 0
je 0x54c2a2
mov eax, str.permessage_deflate
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Sec_WebSocket_Extensions
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x54c292
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c2a2
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x28], ebx
push 0
push 0
push 0
push VariantClear
push 0
push 0x657379
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x54c2d4
mov eax, 0x650b80
push eax
push 3
mov ebx, 0x57a420
call fcn.005788d1
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x54c30c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x54c308
imul eax, dword [ebx]
jmp 0x54c2fd
mov ecx, eax
test ecx, ecx
je 0x54c32b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x54c324
push ebx
push eax
call fcn.005788bf
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x54c312
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.00405498
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x54c781
mov ebx, dword [ebp - 0x14]
call fcn.00401004
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x54c37d
push 0x2c5
push 0x4099e46
push 4
call fcn.005788d7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x54c39a
push 0x2c5
push 0x4099e46
push 1
call fcn.005788d7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push 0x65760e
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x54c3d5
mov eax, 0x650b80
push eax
push 4
mov ebx, 0x579510
call fcn.005788d1
add esp, 0x34
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
call fcn.00401004
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x54c412
push 0x30b
push 0x4099e46
push 4
call fcn.005788d7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x54c42f
push 0x30b
push 0x4099e46
push 1
call fcn.005788d7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x65731c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00401187
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x54c47a
mov eax, 0x650b80
push eax
push 3
mov ebx, 0x5792b0
call fcn.005788d1
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x54c4a4
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.00401004
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x54c4cf
push 0x372
push 0x4099e46
push 4
call fcn.005788d7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x54c4ec
push 0x372
push 0x4099e46
push 1
call fcn.005788d7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x65731c]
fstp qword [ebp - 0x38]
mov ebx, dword [ebp - 0x14]
call fcn.00401004
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x54c52d
push 0x3c7
push 0x4099e46
push 4
call fcn.005788d7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x54c54a
push 0x3c7
push 0x4099e46
push 1
call fcn.005788d7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x3c], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx]
test eax, eax
jne 0x54c567
mov eax, 0x650b80
push eax
push 1
mov ebx, 0x578fb0
call fcn.005788d1
add esp, 0x10
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x50]
fsub qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.00401187
push 0x80000301
push 0
push eax
fld qword [ebp - 0x38]
call fcn.00401187
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x54c5c7
mov eax, 0x650b80
push eax
push 3
mov ebx, 0x5792b0
call fcn.005788d1
add esp, 0x28
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x54c5f1
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x54c608
mov eax, 0x650b80
push eax
push 1
mov ebx, 0x57a160
call fcn.005788d1
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x650b80
push dword [ebp - 0x28]
call fcn.0040147a
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c64c
push ebx
call fcn.005788bf
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x54c6be
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x54c669
mov eax, 0x650b80
push eax
push 1
mov ebx, 0x57a160
call fcn.005788d1
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x650b80
push dword [ebp - 0x30]
call fcn.0040147a
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x54c6ad
push ebx
call fcn.005788bf
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x54c6be
mov eax, 1
jmp 0x54c6c3
mov eax, 0
test eax, eax
je 0x54c779
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x54c6ea
mov eax, 0x650b80
push eax
push 2
mov ebx, 0x579220
call fcn.005788d1
add esp, 0x1c
mov dword [ebp - 0x28], eax
push 0xa5a616
push dword [ebp - 0x28]
call fcn.0040147a
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x54c72e
push ebx
call fcn.005788bf
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x54c768
push dword [ebp - 0x24]
push 0xa5a616
mov ecx, 2
call fcn.00401517
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x54c764
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
pop eax
pop ebx
pop ecx
jmp 0x54c348
add esp, 0xc
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x28], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push VariantClear
push 0
push str.User_Agent
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x54c7c2
mov eax, 0x650b80
push eax
push 4
mov ebx, 0x579510
call fcn.005788d1
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x54c827
mov eax, str.User_Agent
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x54c7f8
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_100.0.4896.75_Safari_537.36_Edg_100.0.1185.36
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x54c812
push ebx
call fcn.005788bf
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054ca26
mov ebx, dword [ebp - 0xc]
call fcn.00405498
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0x6571e1
test eax, eax
je 0x54c846
add eax, 8
push eax
push dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
call fcn.00401004
push ebx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x54c85e
xor eax, eax
jmp 0x54c86a
imul ecx, ecx, 8
push ecx
call fcn.005788c5
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x54c8af
push ecx
push edi
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
pop edi
pop ecx
dec ecx
je 0x54c8af
add ebx, 4
add edi, 8
jmp 0x54c87f
push dword [ebp - 4]
push 0x65748e
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, 0xcd
call fcn.005788dd
cmp dword [ebp - 0x2c], esp
je 0x54c8e3
push 0x718
push 0x4099e46
push 6
call fcn.005788d7
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x54c91c
push ecx
push edi
push ebx
mov edi, dword [edi]
call fcn.00511061
call fcn.00511061
pop ebx
pop edi
pop ecx
dec ecx
je 0x54c91c
add ebx, 8
add edi, 4
jmp 0x54c8f6
call fcn.005788bf
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x54c935
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x54c945
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x54c963
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x54c95f
imul eax, dword [ebx]
jmp 0x54c954
mov ecx, eax
test ecx, ecx
je 0x54c9a3
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x54c97e
push ebx
call fcn.005788bf
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x54c992
push ebx
call fcn.005788bf
add esp, 4
pop ebx
call fcn.005788bf
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x54c969
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x54c9bb
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x54c9d9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x54c9d5
imul eax, dword [ebx]
jmp 0x54c9ca
mov ecx, eax
test ecx, ecx
je 0x54c9f8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x54c9f1
push ebx
push eax
call fcn.005788bf
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x54c9df
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x54ca10
push ebx
call fcn.005788bf
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x54ca20
push ebx
call fcn.005788bf
add esp, 4
mov esp, ebp
pop ebp
ret 0xc