Function at 0x40d610
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.0046ac7f
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x549bef
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.0046ac7f
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x549bef
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.0040a580
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d6d3
push ebx
call fcn.0046ac85
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.0040e005
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d6fc
push ebx
call fcn.0046ac85
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.0040e005
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d72d
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d73d
push ebx
call fcn.0046ac85
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.0040e005
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d76e
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d77e
push ebx
call fcn.0046ac85
add esp, 4
mov eax, 0x6986d1
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.0040e005
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d7af
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d7bf
push ebx
call fcn.0046ac85
add esp, 4
push 0x10
call fcn.0040e1a5
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d7e0
push ebx
call fcn.0046ac85
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b7b0
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.0040e005
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d819
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d829
push ebx
call fcn.0046ac85
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 0x40d881
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.0040e005
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d871
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d881
push ebx
call fcn.0046ac85
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 getpeername
push 0
push 0x698594
push getpeername
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40d8b3
mov eax, 0x549bdc
push eax
push 3
mov ebx, 0x46c920
call fcn.0046ac79
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 0x40d8eb
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40d8e7
imul eax, dword [ebx]
jmp 0x40d8dc
mov ecx, eax
test ecx, ecx
je 0x40d90a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40d903
push ebx
push eax
call fcn.0046ac85
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40d8f1
call fcn.0046ac85
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.004019bf
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 0x40dd60
mov ebx, dword [ebp - 0x14]
call fcn.004012f4
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x40d95c
push 0x2c5
push 0x4015fd8
push 4
call fcn.0046ac97
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40d979
push 0x2c5
push 0x4015fd8
push 1
call fcn.0046ac97
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 getpeername
push 0
push 0x698589
push getpeername
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40d9b4
mov eax, 0x549bdc
push eax
push 4
mov ebx, 0x46baa0
call fcn.0046ac79
add esp, 0x34
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
call fcn.004012f4
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x40d9f1
push 0x30b
push 0x4015fd8
push 4
call fcn.0046ac97
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40da0e
push 0x30b
push 0x4015fd8
push 1
call fcn.0046ac97
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 [0x549bf7]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004012cd
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 1
push getpeername
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40da59
mov eax, 0x549bdc
push eax
push 3
mov ebx, 0x46b840
call fcn.0046ac79
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40da83
push ebx
call fcn.0046ac85
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.004012f4
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x40daae
push 0x372
push 0x4015fd8
push 4
call fcn.0046ac97
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40dacb
push 0x372
push 0x4015fd8
push 1
call fcn.0046ac97
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 [0x549bf7]
fstp qword [ebp - 0x38]
mov ebx, dword [ebp - 0x14]
call fcn.004012f4
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x40db0c
push 0x3c7
push 0x4015fd8
push 4
call fcn.0046ac97
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40db29
push 0x3c7
push 0x4015fd8
push 1
call fcn.0046ac97
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x3c], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx]
test eax, eax
jne 0x40db46
mov eax, 0x549bdc
push eax
push 1
mov ebx, 0x46b370
call fcn.0046ac79
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.004012cd
push 0x80000301
push 0
push eax
fld qword [ebp - 0x38]
call fcn.004012cd
push 0x80000301
push 0
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40dba6
mov eax, 0x549bdc
push eax
push 3
mov ebx, 0x46b840
call fcn.0046ac79
add esp, 0x28
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40dbd0
push ebx
call fcn.0046ac85
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40dbe7
mov eax, 0x549bdc
push eax
push 1
mov ebx, 0x46c710
call fcn.0046ac79
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x549bdc
push dword [ebp - 0x28]
call fcn.00403316
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 0x40dc2b
push ebx
call fcn.0046ac85
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x40dc9d
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40dc48
mov eax, 0x549bdc
push eax
push 1
mov ebx, 0x46c710
call fcn.0046ac79
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x549bdc
push dword [ebp - 0x30]
call fcn.00403316
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 0x40dc8c
push ebx
call fcn.0046ac85
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x40dc9d
mov eax, 1
jmp 0x40dca2
mov eax, 0
test eax, eax
je 0x40dd58
push 0x80000301
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40dcc9
mov eax, 0x549bdc
push eax
push 2
mov ebx, 0x46b7b0
call fcn.0046ac79
add esp, 0x1c
mov dword [ebp - 0x28], eax
push str._0123456789ABCDEF_n
push dword [ebp - 0x28]
call fcn.00403316
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 0x40dd0d
push ebx
call fcn.0046ac85
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x40dd47
push dword [ebp - 0x24]
push str._0123456789ABCDEF_n
mov ecx, 2
call fcn.00401a43
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40dd43
push ebx
call fcn.0046ac85
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.0040e005
pop eax
pop ebx
pop ecx
jmp 0x40d927
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 getpeername
push 0
push str.User_Agent
push getpeername
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40dda1
mov eax, 0x549bdc
push eax
push 4
mov ebx, 0x46baa0
call fcn.0046ac79
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x40de06
mov eax, str.User_Agent
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ddd7
push ebx
call fcn.0046ac85
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 0x40ddf1
push ebx
call fcn.0046ac85
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.0040e005
mov ebx, dword [ebp - 0xc]
call fcn.004019bf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0x549bef
test eax, eax
je 0x40de25
add eax, 8
push eax
push dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
call fcn.004012f4
push ebx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x40de3d
xor eax, eax
jmp 0x40de49
imul ecx, ecx, 8
push ecx
call fcn.0046ac7f
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 0x40de8e
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 0x40de8e
add ebx, 4
add edi, 8
jmp 0x40de5e
push dword [ebp - 4]
push 0x6987b9
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, 0x40
call fcn.0046ac9d
cmp dword [ebp - 0x2c], esp
je 0x40dec2
push 0x718
push 0x4015fd8
push 6
call fcn.0046ac97
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 0x40defb
push ecx
push edi
push ebx
mov edi, dword [edi]
call fcn.0040d5d9
call fcn.0040d5d9
pop ebx
pop edi
pop ecx
dec ecx
je 0x40defb
add ebx, 8
add edi, 4
jmp 0x40ded5
call fcn.0046ac85
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40df14
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40df24
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40df42
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40df3e
imul eax, dword [ebx]
jmp 0x40df33
mov ecx, eax
test ecx, ecx
je 0x40df82
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40df5d
push ebx
call fcn.0046ac85
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40df71
push ebx
call fcn.0046ac85
add esp, 4
pop ebx
call fcn.0046ac85
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40df48
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40df9a
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40dfb8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40dfb4
imul eax, dword [ebx]
jmp 0x40dfa9
mov ecx, eax
test ecx, ecx
je 0x40dfd7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40dfd0
push ebx
push eax
call fcn.0046ac85
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40dfbe
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40dfef
push ebx
call fcn.0046ac85
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40dfff
push ebx
call fcn.0046ac85
add esp, 4
mov esp, ebp
pop ebp
ret 0xc