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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d516b
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x5d50db
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ebx, [0x7ae8dc]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.004d0c90
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x5d4efe
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x5d4ef7
lea eax, [ecx - 1]
cmp ecx, eax
jb 0x5d5165
mov eax, dword [esp + 0x44]
lea edx, [eax + ecx - 1]
mov dword [esp], edx
lea edx, [0x7ae8d0]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call fcn.004034e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x20]
jmp 0x5d4ef9
xor eax, eax
xor eax, 1
jmp 0x5d4f04
mov ecx, dword [esp + 0x20]
xor eax, eax
test al, al
jne 0x5d4f0e
mov edx, dword [esp + 0x44]
jmp 0x5d4f38
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0051c250
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5d50c2
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], edx
test ecx, ecx
jg 0x5d4f48
xor eax, eax
jmp 0x5d4f6f
mov dword [esp], edx
lea eax, [0x73a4b6]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.004034e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
test al, al
je 0x5d4fb3
test ecx, ecx
jle 0x5d4faf
lea eax, [ecx - 1]
cmp ecx, eax
jb 0x5d5160
lea eax, [edx + ecx - 1]
mov dword [esp], eax
lea eax, [0x7ae8d0]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.004034e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
jmp 0x5d4fb5
xor eax, eax
jmp 0x5d4fb5
xor eax, eax
test al, al
jne 0x5d4ff8
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0051abf0
movzx eax, byte [esp + 0x18]
lea edi, [esp + 0x34]
lea esi, [esp + 8]
call fcn.004695e8
lea edi, [esp + 0x24]
lea esi, [esp + 0x34]
call fcn.004695e8
test al, al
je 0x5d4fee
lea eax, [esp + 0x24]
jmp 0x5d4ff0
xor eax, eax
test eax, eax
je 0x5d5081
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.005c36a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409d40
mov eax, dword [esp + 8]
lea ecx, [0x6f44e0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x74f41c]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c1f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call fcn.005d5180
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x60], al
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
add esp, 0x50
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov dword [esp], eax
call fcn.005c36a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409d40
mov eax, dword [esp + 8]
lea ecx, [0x6f44e0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x750904]
mov dword [esp], eax
mov dword [esp + 4], 0x3e
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c1f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
call fcn.00468f30
call fcn.00468f30
nop
call fcn.00467a60
jmp fcn.005d4e60